Toogle True | false
Gamexs
Member Posts: 35
Hello,
i want to create button like Toogle True False...when i press on first time it turn to true and when i press on second time i make false like toogle .
i want to create button like Toogle True False...when i press on first time it turn to true and when i press on second time i make false like toogle .
Comments
Hi @Gamexs There's a couple or three ways to do this; here's a straightforward way where you can see what's going on:
https://www.dropbox.com/s/c5u9h9y31x2d36e/MUSIC ON OFF DG.gameproj.zip
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Use an integer attribute, let's call it Toggle, default value 0.
When touch is pressed:
Change Toggle to 1-Toggle.
@gyroscope
Damn you with your 60 second faster reaction time . . . . 8-X :ar! 8-X
Thought processes…. quick on the draw…. Quick on the Draw McGraw…. find Quick on the Draw McGraw video…. found Snuffles instead…. (laughed a bit)…. decide to post here… here he is…. Snuffles. With a dog biscuit. I like Snuffles. Not so fond of dog biscuits.
And @Gamexs : you're welcome. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Have you been at the sherry again ?
No, this is the peculiar, random, sometimes surreal person I have become… :-j
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Hehe! :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Worryingly your "No, this is the peculiar, random, sometimes surreal person I have become…" comment got an 'agree' (and it wasn't me).
)
Yes, @Socks, us peculiar, random sometimes surreal people are secretly banding together (except I've just told you) and we plan to take over the world! (Or meet up for a few random pints).
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps