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 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?
Develop games in your browser. Powerful, performant & highly capable.
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"
Take your button sprite and create boolean variable. Name it something like "Is_Playing". Now events:
On BUTTON clicked