I have a sprite that I can rotate by holding down a button, that stops rotating when it reaches the angle 0. The sprite can be in any position and while I hold down the button, the sprite will rotate until it's the right way up again.
Now I would like to turn this button hold action into a button press action. I want to press the same button once, and the sprite keeps rotating until it corrects itself, but I can't figure out how to use while/for loops with Construct.
The second block of actions in the image is what I am trying to achieve(badly).