Essentials Series/Sound and Music: Difference between revisions

Content added Content deleted
No edit summary
m (→‎PlayMusic Event: typo lol)
Line 50: Line 50:
== PlayMusic Event ==
== PlayMusic Event ==
If you want a music track to play, you can send the PlayMusic [[../Links/|event]] to any [[../Dispatchers/|dispatcher]] with the number of the song on the first argument (the game always uses a dispatcher called MUSIC_DISP, and so can you if you wish, but it's not necessary). Note that this cannot be done on ScenePrepare, as you have to wait at least one frame before PlayMusic actually works. An alternative way is to make a [[../Timers/|timer]] that runs on ScenePrepare and expires in 0.1 seconds before sending PlayMusic to a dispatcher on Expired. These are the possible values for the argument:
If you want a music track to play, you can send the PlayMusic [[../Links/|event]] to any [[../Dispatchers/|dispatcher]] with the number of the song on the first argument (the game always uses a dispatcher called MUSIC_DISP, and so can you if you wish, but it's not necessary). Note that this cannot be done on ScenePrepare, as you have to wait at least one frame before PlayMusic actually works. An alternative way is to make a [[../Timers/|timer]] that runs on ScenePrepare and expires in 0.1 seconds before sending PlayMusic to a dispatcher on Expired. These are the possible values for the argument:
* 00 - Bikini Bototm
* 00 - Bikini Bottom
* 01 - Jellyfish Fields
* 01 - Jellyfish Fields
* 02 - Downtown Bikini Bottom
* 02 - Downtown Bikini Bottom