I am trying have an event where button A is pressed, the sprite will turn 90 degrees clockwise and when the same button is pressed it will turn back to the original position which is -90 degrees from the new position.
I set a global variable - rotation = 0 where button A is pressed, add 1 to rotation and check when rotation is 1, rotate -90 clockwise. However, it becomes a loop that causes the sprite to not turn at all. I guess the system check is instant. How do I work around this?