I did a quick version while I was waiting... press f for the 'attack'. Set whatever sprites you want for the events. You should also add a ready event, so that you can't cheat out the combo by pressing the button quickly. To do this I would change the if statement to
- Code: Select all
if (combo==1 && animation_finish==1)
{
attack;
animation_finish=0;
}
And upon an animation finish event
animation_finish=1;
You would also need to switch the timer to something higher, or you could activate the timer after the animation finishes, whichever you feel is better suited.