Toggle an Attribute
beefy_clyro
Member Posts: 5,394
Hi guys
Should be a nice simple one this one. What i want to do is press a button that switches a boolean from false to true, i then want it to go from false to true if you push it again. I know this can be done using the % sign but i canne remember how to do it.
Thanks
Should be a nice simple one this one. What i want to do is press a button that switches a boolean from false to true, i then want it to go from false to true if you push it again. I know this can be done using the % sign but i canne remember how to do it.
Thanks
Comments
http://gamesalad.com/forums/topic.php?id=678#post-3721
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
game.switch to 1-game.switch
is even easier