|
This is going to be hard to explain but......how do you make an object stand still as one sprite when no buttons are pressed, then animate and move around when pressing the left,down, right, and up buttons. So far I set the left, right, up, and down buttons to "jump to a given position," then set the values so they respond to the correct direction. After, I set the <no key> event to change to the sprite that needs to be there when no key is pressed, so the object looks like its standing still. After doing this, the object moves around perfectly, but the original object sprite is the only sprite that is shown when up, down, left, right or no key is pressed. How do I make it so the original sprite plays only when no key is pressed and play a sprite that animates when up, down, left , or right is pressed. If this is hard to read, tell me and I'll try to better explain it.
|