I have a sprite that I want to toggle visibility by touch.
If it is invisible and you touch it, is should become visible.
If it is visible and you touch it, it should become invisible.
On tap gesture on sprite AND sprite is NOT visible, set sprite visibility to visible
But if I add another event:
On tap gesture on sprite AND sprite is visible, set sprite visibility to invisible
Then nothing works at all..
Develop games in your browser. Powerful, performant & highly capable.
Try: System: Else - set sprite visibility to invisible. Under your firs event. good luck!
you mean like this
When I add the System:Else statement, it goes red and says "Not Valid Here"
Your example is close, but I need the sprite to click-on, click-off.... Not temporarily click off then reappear..
Figured it out..!
Good for you nice work