Nah, that was also my first thought, but that's not it. Still haven't figured it out, but I'll post the solution once I will.
Anyway, here's another one:
9) I added an 'attack' control and have my 'animation' event sheet pretty much set-up like you did in the platforming school thingy.
What I want to achieve is this: If the player presses 'Attack' once the 'Attacking' Animation will be played once. And after the attacking animation has been played once, the character will be back at 'Standing'.
Now, my attack event is:
On "Attack" pressed - Player: Set "IsAttacking' to 1 (private variable for the player)
Value "IsAttacking" equal to 1 - Player: Set animation to "Attacking"
Now, what I don't get is how to tell Construct that it should only play the animation ONCE and then return to the "Standing" stance. If I press the Attack key now, the "Attacking" animation will loop with no end.
So what I tried was this:
(Inverted) On "Attack" pressed - Player: Set "IsAttacking' to 0
Value "IsAttacking" equal to 0 - Player: Set animation to "Standing"
That results in the sprite flashing for a tick and nothing else happening. So my guess is that the "press key" only works for a single tick and so does the inverted version - so it tries to start the animation for a tick and immediately sets it back to 0.
But I don't see how I'd set it otherwise. Help!