I have enemies in game.
Variable: WalkDr = left, it goes left
WalkDr = right, it goes right
Collision against object (reverse direction)
-if walkdr = left, set walkdr to right
-else = set walkdr to left
It works just perfectly. But when I change the size of the enemy, he goes right through the object and the command doesn't work properly.
Why does this happen when I change the size of the enemy?
https://www.scirra.com/tutorials/253/ho ... ame/page-7
This is exactly what I am doing.