[SOLVED] I need help

In my project I use two scripts that are intertwined, these should make that every time I make a “coin” entity, it changes from 0 to 1 but I don’t know what to do, any ideas, here is the link of my project PlayCanvas | HTML5 Game Engine
the two scripts are called Rotator and movement, also by the way I would like you to help me solve an error called this.entity.collision is undefined

Hi @Ricardo_Reyes,

Check this user manual page on script communication, it will help you learn how to make your two scripts interact with each other.

https://developer.playcanvas.com/en/user-manual/scripting/communication/

About the collision undefined error make sure that the entity you are trying to access has a collision component.

2 Likes

Thank you

thanks for helping