I'm having trouble figuring this out... Apologies in advance if this is already explained somewhere...
I want to have a button that once touched basically toggles a sprite rotation, based upon a global variable.
So, in my project, I have a global variable called "rotateDir" it's set to 0 initally.
A sprite acts as my toggle button, and I essentially want to have the touch of this sprite to basically set the rotateDir to 1 if it's 0, and to 0 if it's 1.
Thanks for any help!