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 could I play background music continuously
i added sound then add action in event play "sound"
but when i click "restart game" or go to another layout
it plays from beginning
If you load it once like
"on loader layout complete" then it stays between layouts
edit: or doesn't reload (where I think is your problem)
No, it's simple. When you call the Play event, give it a tag ("bgmusic" or something).
On Start of Layout
Tag "bgmusic" is not playing ----------> Play with tag "bgmusic"
This way, it will only start if it is not already playing.
Develop games in your browser. Powerful, performant & highly capable.
How do I go about modifying the logic of my Event Sheet to include the music in the background, but make it where the music doesn't stop between layout reload / advancing?
Additionally, is there a way to make it where the bgmusic stops once the user returns to the main menu?
Here's a snippet from my Main_Sheet event sheet: