So, I have an animation that most be played whenever the player clicks on the sprite. However, it only works once. What did I go wrong? Picture of my code:
Try setting the animation frame of rail_gun to 0.
Thanks, it now works properly