I'm trying to make a pushing collision between 2 objects.
If I use global variable it's working fine but if I use local variable it's not.
Here's the capx : https://drive.google.com/open?id=1gYLpq ... YAv3fEo7N7
What am I doing wrong?
Develop games in your browser. Powerful, performant & highly capable.
Try setting your local variable to "static" (you can do this by right clicking the variable and selecting "edit").
Thank you! Now it's working well.
Could you please explain what does actually do the static checkbox? Why do we need to enable it?
Unless I've misunderstood the manual, local variables reset to their initial value every tick unless set to "static" which allows them to persist in their value and have that value updated (like global variables).
Thank you for informing me.