The project I'm working on is a sidescroller. You basically have to slash through enemies with your sword.
I asigned the key for swinging the sword to K. What I want is for the animation to change the secind time I press K. Example:
The player presses the K key and the character sprite swings his sword. Imediatly after the sword swing is done, the player hits the K key again, and this time the character sprite does a whole new animation of swinging this sword.
Been trying to do this myself, but I just can't seem to make it work. Help