Play event or scene-based music, then resume regular music.

UneptUnept Member Posts: 20
I'd like to play a short bit of music when a player goes to the "game over" scene of my game. That part is easy, but I am having trouble resuming the regular game music. I have hacky ways to get it to almost work, but I know there's a smart way to do it.

Can someone please point me to a thread/video/demo that demonstrates advanced control of music (not sounds)?

Thanks!

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You can oly lay one music file at a time. So use the pause music behavior and then use the event music as a play sound behavior. The you can resume your music when it's done.
  • GamersRejoiceGamersRejoice Member Posts: 817
    This can be done but only if your sound is short. I've tried to use this trick with a full song and it made the game hiccup (on the device) because of how gamesalad handles loading sounds vs music.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Yeah you do prob just want a short track that can loop nicely. That t how I generally do it.
  • UneptUnept Member Posts: 20
    Thanks guys!

    OK, it looks like I'll have to change my "game over" music from a .m4a to a .wav file, or else GS automatically assumes it's music. Does that sound right?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    It should ask if you want it to be handled as music or sound when you import it into GS. Try just removing it and reimportimg and see of it pops up that option box.
Sign In or Register to comment.