Is there out there a good platform movement example? I'm trying to make my own but I'm quite sure many things could be made better.
For now I have troubles with the shooting animation: if the player is running and 'spacebar' is pressed, the player should stop, play an animation and shot an object. If the player is jumping/falling while the key is pressed, he should play another animation and shot the object, then return to the jumping/falling anim.
The problem is that I'm trying to control all the possible characters using the same conditions, so instead of using 'While animation x is playing', I have to use a timer. Any ideas?
Basically all the characters are at 0,0 from an invisible box object. When you move the player, you actually move the box object. Upon pressing 'S' the current character becomes invisible and the following one becomes visible. In this way you can switch the character you're using. The animations of all characters are controlled via flags (set as alterable values of the box object).