How do I a toggle sound "on/off" button, only with 1 sprite and not with 2?
Please help; a .capx file will be very helpfull thanks!
Develop games in your browser. Powerful, performant & highly capable.
Use a boolean variable
(subevent)
if boolean = true - set sound on
else set sound off
how can add this variable? / Which is the instance variable for the toggle boolean?
Construct 2 missage: Instance Variable--> <none - add an instance variable first>
how can add this variable? / Which is the instance variable for the toggle boolean? Construct 2 missage: Instance Variable--> <none - add an instance variable first>
Search "Variables" in the manual. Fully read and understand the first 5 hits. You will have greater challenges than this in making any game.
make a sprite with 2 animations - on and off
Then,
When someone presses the sprite,
Make a sub-event --> is playing on, then set animation to off and stop music
else --> set animation to on and play music