Everything is fine when I set the projectile to spawn right at the moment of key press-- I get one projectile per press.
Function | On "Shoot" | Player: Set animation to "Fire", Spawn "Projectile" on layer 1 (image point 1)
However, with the animation that goes along with it, I don't want the projectile to spawn until frame 3.
So I set it up as a new, separate event:
Function | On "Shoot" | Player: Set animation to "Fire"
Player | Is animation "Fire" playing|
>Player | Animation frame = 3 | Player: Spawn "Projectile" on layer 1 (image point 1)
And now on each key press, five or six projectiles are spawned from animation frame 3!
Like I said, this only happens when I restrict it to a specific frame.
How can I make it so that only one projectile is spawned per key press, on the frame I want?