Ok issues im having
Imagine this game in a side view (kind of like the old mario games on gameboy)
1. How can i make it so when i hold down a button 'a' for example, the current non moving sprite will change into a moving sprite and stop on the last frame so it wont loop. And also how do i make it return to the normal sprite when i let go of a.
eg. I want to hold down the a button so the sprite crouches but doesnt loop when the animation finishes, so he stays crouching until i let go of a and he returns to normal 'standing'.
2. How can i make a sprite jump diagonaly forward and when he lands not get moved back to the location he was standing before he jumped.
eg. I want the sprite to jump forwards and land in a new position, not have the sprite moved back to the original position when i either let go of 'the button' or the animation finishes.
3. How can i make a certain sprite deal damage to a certain object 'an enemy'.
eg. Press d and the standing sprite changes into a punching sprite, and when the object collides with an enemy object "while in that sprite" either kills or deals damage to it.
4. How to make an attack that will only work in mid air/crouch position.
eg. Pressing a in the stand position initiates a punch, pressing a in a crouching postion initiates a leg sweep and pressing a in the air initiates an arial kick.
Help would be appreciated.