Essentials Series/Sound and Music: Difference between revisions

m (→‎PlayMusic Event: typo lol)
Line 49:
 
== 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:
 
* 00 - Bikini Bottom
Here is a table of which argument will play which song, as well as whether it exists in the game. If a song does not exist, it will silence the music instead unless you add it.
* 01 - Jellyfish Fields
 
* 02 - Downtown Bikini Bottom
{| class="wikitable"
* 03 - Goo Lagoon
|-
* 04 - Poseidome
! Argument !! SNDS asset (MNU5.hip) !! Exists?
* 05 - Rock Bottom
|-
* 06 - Mermalair
| 0 || music_00_hb_44 || <span style="color:#007F00">Yes</span>
* 07 - Silence (Sand Mountain has no unique track!)
|-
* 08 - Industrial Park
| 1 || music_01_jf_44 || <span style="color:#007F00">Yes</span>
* 09 - Kelp Forest
|-
* 10 - Flying Dutchman Graveyard
| 2 || music_02_bb_44 || <span style="color:#007F00">Yes</span>
* 11 - SpongeBob's Dream
|-
* 12 - Chum Bucket Lab
| 3 || music_03_gl_44 || <span style="color:#007F00">Yes</span>
* 13 - Title Screen
|-
* 15 - Slide
| 4 || music_04_b1_44 || <span style="color:#007F00">Yes</span>
* 16 - Ambush
|-
| 5 || music_05_rb_44 || <span style="color:#007F00">Yes</span>
|-
| 6 || music_06_bc_44 || <span style="color:#007F00">Yes</span>
|-
| 7 || music_07_sm_44 || <span style="color:#FF0000">No</span>
|-
| 8 || music_08_b2_44 || <span style="color:#007F00">Yes</span>
|-
| 9 || music_09_kf_44 || <span style="color:#007F00">Yes</span>
|-
| 10 || music_10_gy_44 || <span style="color:#007F00">Yes</span>
|-
| 11 || music_11_db_44 || <span style="color:#007F00">Yes</span>
|-
| 12 || music_12_b3_44 || <span style="color:#007F00">Yes</span>
|-
| 13 || music_13_mnu3_44 || <span style="color:#007F00">Yes</span>
|-
| 14 || music_14_mnu4_44 || <span style="color:#FF0000">No</span>
|-
| 15 || music_15_slide_44 || <span style="color:#007F00">Yes</span>
|-
| 16 || music_16_ambush_44 || <span style="color:#007F00">Yes</span>
|-
| 17 || music_17_subboss_44 || <span style="color:#FF0000">No</span>
|-
| 18 || music_18_skatepark_44 || <span style="color:#FF0000">No</span>
|-
| 21 || music_21_Calliope1 || <span style="color:#007F00">Yes</span>
|-
| 22 || music_22_Calliope2 || <span style="color:#007F00">Yes</span>
|-
| 23 || music_23_Calliope3 || <span style="color:#007F00">Yes</span>
|}
 
== Sound Effects (Scooby and BFBB) ==