How Should I setup My Music? Need Tips Please
JoshKahane
Member Posts: 470
Hi
So my new game is level based and so every time the level is reset (in case you fail the level, which is bound to happen loads) the music gets stopped and restarted again. Ay ideas as to how I can make it so that this doesn't happen?
The music really adds something to the game, but any ideas?
Thanks.
So my new game is level based and so every time the level is reset (in case you fail the level, which is bound to happen loads) the music gets stopped and restarted again. Ay ideas as to how I can make it so that this doesn't happen?
The music really adds something to the game, but any ideas?
Thanks.
Comments
You need to use Change Scene.
Keep track of the current scene with a global game attribute, called something like currentScene.
Then a set of Rules:
Rule
When game.currentScene = 1
Change Scene To: Level 1
Rule
When game.currentScene = 2
Change Scene To: Level 2
Etc...
This will keep your music from restarting when you change any levels or scenes.
Thanks Scitunes