Reset scene without stopping music?
micah
Member Posts: 85
Is it possible to reset the scene without stopping the music? In my game when you die it just resets the scene, but I don't want to start the music over from the beginning each time. Is this possible?
Comments
what you have to do is this:
keep a global integer attribute called currentLevel.
Instead of reset scene, use a rule and change scene like this:
When game.currentLevel = 1
Change Scene to Level 1
When game.currentLevel = 2
Change Scene to Level 2
etc...
It's tedious, but it works.
Hope this helps!
Joe
On both scene navigation buttons on the splash screen, I set playMusic to 1. And, as FMG says above, instead of setting up Reset Scene on the main playing screen, I said "if playMusic = 1" Change Scene to main playing scene.
This way, the music starts when the app starts, and doesn't stop or restart until the app is quit. So far...
kx