Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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 to play sound in first click and stop in the next click?
my code for play file but how can i stop the music from the same button?
Hi, on event 3 you could try:
On Left Button Clicked on AbdullahPic
(subevent) Audio: Not Tag "ddd" is playing : Play bass tag "ddd" looping
(subevent) else : Stop tag "ddd"
Develop games in your browser. Powerful, performant & highly capable.
Take your button sprite and create boolean variable. Name it something like "Is_Playing". Now events:
On BUTTON clicked