Scrolling Game Development Kit Forum

SGDK Version 1 => Help/FAQ => Topic started by: iluvcat on 2005-03-23, 09:41:56 PM

Title: changing music clips with special functions
Post by: iluvcat on 2005-03-23, 09:41:56 PM
Hey guys!,
         I have teleports in my game that take me to 3 places on my map. I want to designate 3 music clips that will play as background music or at least play relative to these sections of the map. Can it be done and how. I have set up some clips with functions to stop and start each clip but doesnt work.  Here are the samples I tried:



http://www.mauinteractive.com/tech_ques/sound_prob.rtf
Title: RE: Changing Music
Post by: durnurd on 2005-03-23, 10:25:22 PM
OK, here's what you do:


First of all, stop uploading huge documents that take half an hour to download on a modem.  Just describe what you've done.

And you know what, since even the size of the entirety of GameDev is less than the document, it would be smaller to download a full installation of the game with dummy sounds.  Even better yet would be to just upload the .GDP file.

Okay, so now... define each music clip, then switch over to the Assign Media tab, and choose the map you are working with.  Then, choose the function that activates, and choose the music you want to play in the "Change Background Music" dropdown list.

If that's what you already did and it shows that in the rtf file, sorry.  I didn't download it.  Make sure you are saving it and the functions aren't automatically activating another funciton that changes the music back.  For refference, see the tutorial (http://gamedev.sourceforge.net/Help/Tut8.htm).
Title: changing music clips with special functions
Post by: bluemonkmn on 2005-03-24, 07:00:17 AM
Basically I think you just need to use change music commands instead of play/stop clip commands and things will work out better for you.  Change music is right below start/stop clip.