I'm basically trying to make a hard mode for a game I'm working on. I'm not sure if it works but I did it anyways.
Toggle sets it to the opposite of what it currently is. If it's true it changes to false. If it's false it changes to true, each time you click the button.
Thanks! This is exactly what I wanted to know. I never really knew whether it would work or not so thank you for verifying. :)
Develop games in your browser. Powerful, performant & highly capable.
FYI you can check variables in debug preview, you will see the boolean changing between 0 and 1.
By the way, you don't need that second condition (Touch is touching button) on your screenshot. "Button on clicked" should already work with mouse and touch.
Oh, okay. I'll keep that in mind.
Update: The boolean isn't working for some reason.