|
Post by chaosshadic456 on May 15, 2012 15:43:43 GMT -5
hi guys, i putted a music when the stage is loading(like in bsu demo 3 xd) but when the stage finish the loading, the music continue's . you have a solution?
|
|
samcrossette
Relic Team
Advanced Coder,Stage Maker & Photoshoper
Posts: 427
|
Post by samcrossette on May 17, 2012 8:50:45 GMT -5
Why do use XD every post ? Anyway, depens, you play a different music or the same one as the stage ?
|
|
|
Post by chaosshadic456 on May 17, 2012 17:54:38 GMT -5
"Greenhill-sonic generations"
|
|
|
Post by Th33z on May 17, 2012 19:06:01 GMT -5
You didn't answer his question...
|
|
|
Post by Marble (LS5) on May 17, 2012 22:28:51 GMT -5
That's an easy one! Somewhere where the game starts loading, put this. Game\MusicChn = PlaySound(Sound_BGM) Avoid putting this in a loop. instead, put this where the loading function is called, like Game_Startup. (You will have to make a new field in tGame, as well as make a new sound in the Sounds file) When the stage stops loading, use this. StopChannel(Game\MusicChn)
|
|
3DSawnikku
Relic Team
Pro Coder,Rigger,Animator,GIMP-er,Etc
Posts: 647
|
Post by 3DSawnikku on May 18, 2012 13:12:26 GMT -5
If you still dont understand, Here:
In Game.bb
Where tGame is, Put
Field MusicChn under Field Music
in whatever place you want it: Put
Game\MusicChn = PlaySound(Sound_BGM)
Edit*(Change Sound_BGM to Sound_Menu or whatever you want.)
Where ever you want. and if you want it to stop put StopChannel(Game\MusicChn)
And if it works then, congragulations!
I used for boosting,the long boosting sound from Bsu.
|
|
|
Post by chaosshadic456 on May 18, 2012 13:15:23 GMT -5
thenks, very much.
|
|
|
Post by 06hypersonic60 on May 18, 2012 15:15:14 GMT -5
That's an easy one! Somewhere where the game starts loading, put this. Game\MusicChn = PlaySound(Sound_BGM) Avoid putting this in a loop. instead, put this where the loading function is called, like Game_Startup. (You will have to make a new field in tGame, as well as make a new sound in the Sounds file) When the stage stops loading, use this. StopChannel(Game\MusicChn) Ummm... Why do u have to make a field ..... I just put BGM = playmusic("loading.mp3") in the stage.bb and stop it in the game startup ( guess so ) without fields.
|
|
|
Post by Marble (LS5) on May 18, 2012 17:43:24 GMT -5
It's a good habit to get into, especially if you are planning on using the channel more later.
|
|