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)
Develop games in your browser. Powerful, performant & highly capable.
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.
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: