Page 1 of 1

How to have different music on each level?

PostPosted: Sat Jan 05, 2008 8:52 am
by msv83
I've just started working with Game Editor, and have so far started learning a few bits from watching the tutorials and browsing this forum for help on things that weren't covered there :)

Anyway, I have now run into something I don't understand how to do. I want to create a game with several levels, and have so far created a start-menu with a start button and options etc. and the first level. I want the startmenu to play a music track, and when the player clicks on the Start-button they will start the game and the first level's music starts playing instead. But of course, the music for the menu just keeps playing...

I have noticed there is a "stopSound" function, but I haven't found out how to use it for this, or where to put it to make it work.

Re: How to have different music on each level?

PostPosted: Sat Jan 05, 2008 9:10 am
by j2graves
use script editor to use "playmusic2" because that allows you to make the loop infinite by setting it to zero. about different music, if you have a playmusic or a playmusic2 action, it will automatically stop the previous music.

Re: How to have different music on each level?

PostPosted: Sat Jan 05, 2008 10:09 am
by Bee-Ant
Create an actor called "MusicChanger". When it's colliding with the player destroy that MusicChanger and change the music...it's quite easy... :D :D

Re: How to have different music on each level?

PostPosted: Sat Jan 05, 2008 4:01 pm
by msv83
Thank you very much for your help. Made it work now :D

Re: How to have different music on each level?

PostPosted: Sat Jan 05, 2008 5:25 pm
by j2graves
u r welcome. :D

Re: How to have different music on each level?

PostPosted: Sun Jan 06, 2008 7:05 am
by Bee-Ant
We're waiting for your next question... :D
Btw, this topic should placed in Game Development... :roll: