Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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!
Use a boolean variable
(subevent)
if boolean = true - set sound on
else set sound off
Develop games in your browser. Powerful, performant & highly capable.
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