What I want to do, Is that an object, for example (an enemy) The only move to the right, left, up, or down, Simultaneously, anyone without press any key. And every time the enemy, is directed right, play an animation in the sprite of the enemy walking to the right, and do the same, When you go up, down or to the left.
Took about 3 hours and not gotten anything yet .. Any help?