I have borders in my game which are static physics objects. The player should NOT ever be allowed to move through them.
My problem is that I am using transition.to for all my player movement and if I click on the other side of a physics border, the player walks right through the object, despite that it’s static.
I read that the way to handle this is by cancelling the transition.
This only works if I just click one time. But on the second click, the player proceeds to move across the border since the collision doesn’t happen at that point.
Can anyone help me out with a way to stop the transition.to from moving through the static physics object?