I have a tile-able background object that I'm trying to toggle an effect associated with it on and off through left mouse click with very little success below are the events I am using to try to trigger it however no matter what i do ev if i create sub events it does not work
i cant get the image to display in the pos but heres the drop box link to the screencapture
dropbox.com/s/peyj30z9qjlvh4u/toggle%20issue.png
does anyone have any ideas?
thanks
Lobsetrbob
What's happening is that set of code is constantly running, so when you click and deactivate it, the next line of code says oh it's deactivated, activate it. Next time you click it does the same thing.
I'll try to whip up a example.
Develop games in your browser. Powerful, performant & highly capable.
Here is an example using a function and a boolean instance variable.
Toggle Sprite Visible / Invisible