I am working at a simple Metroid-style game, but I got stuck at the diagonal shooting animation. When pressing the "W" and "D" buttons (the right-up combination), the sprite changes, but it doesn't move. What should I do?
Here are the events and actions (because I can't put an image unless it's on a site or something):
Player, On platform moved - Set animation speed to 15
Player, Platform is NOT moving - Weapon, Set animation speed to 0
- Weapon, Set animation frame to 0
Player, NOT mirrored - Weapon, set animation to Right (play from beginning)
Player, mirrored - Weapon, set animation to Left (play from beginning)
Keyboard, W is down
|- Player, NOT mirrored - Weapon, set animaton to UpR (play from beginning)
| |- Keyboard, D is down - Weapon, set animation ro DiagonalUpR (play from beginning)
|- Player, mirrored - Weapon, set animaton to UpL (play from beginning)
| |- Keyboard, A is down - Weapon, set animation to DiagonalUpL (play from beginning)
Note: The "Right" and "Left" animations are ANIMATED, they stop when Player doesn't move, the Weapon being attached to it.
The "UpR" and "UpL" animations are NOT ANIMATED, they are used when the W key is pressed and Player doesn't move.
I hope the event sheet is intelligible.
Thank you very much! :D