Continue playing music throughout game...
butterbean
Member Posts: 4,315
I have an actor within a scene in level 1 where it says play music...
Is there a way to get this track to continuously play even after the player dies, and restarts that level?
Is there a way to get this track to continuously play even after the player dies, and restarts that level?
Comments
Make a game attribute: musicLevel (Integer type) Since game attributes are not reset with a reset scene, this data will be preserved.
Have a Rule:
When Attribute: game.musicLevel ≠ 1
---Play Music (The music you want)
---Change Attribute: game.musicLevel = 1
This way when you start a level it starts the music you want, and if the scene is reset it won't restart the music. And if you have different music for different levels, just change the 1's in the rule to the appropriate level and have that actor in that level.