So I create player sprite and enemy sprite. Both have platform behavior. Enemy fallow player when distance is smaller then 75 pix.
Problem start when enemy can't fallow you and is running into wall. Player animation change to iddle when is running into wall, enemy make error and dont change animation. Both use same events. How to fix that?