Jump to content

Home

Overriding module music?


Pikmin

Recommended Posts

I have a music file(mus_atris) set to play in my new version of the "Atris' Corruption" scene. But it plays on top of the normal music that plays while in the module. Is there a way to keep the other music from playing in the onenter script?

Link to comment
Share on other sites

The premade script a_bg_music can turn the background music on and off during cutscenes. Use 0 as the parameter P1 to turn music off and 1 to turn it on again at the end of the cutscene.

 

If you want to stop the music in your own scripts, this command will turn the background music off

MusicBackgroundStop(GetArea(OBJECT_SELF));

And to make it play again:

MusicBackgroundPlay(GetArea(OBJECT_SELF));

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...