Hello,
I have a sprite with two images in two frame. Frames are all stopped, i.e. they don't run, so to change the frame requires a set frame action.
I have a toggle button, and when i press the button i basically do a set frame (1 - sprite.animateframe) which works well.
However, i actually wanted to have a spriteState boolean instance variable and control the set frame with the variable and conditions on the toggle button event.
But, i can't get this to work -- the event loop, once it sets the boolean to true, the next event condition is true and then it sets it to false.
I.e. how can i create a toggle within the event loop