Skip to content

Instantly share code, notes, and snippets.

@joonjoonjoon
Created August 27, 2014 21:54
Show Gist options
  • Select an option

  • Save joonjoonjoon/14616f8bb5c1fc56b323 to your computer and use it in GitHub Desktop.

Select an option

Save joonjoonjoon/14616f8bb5c1fc56b323 to your computer and use it in GitHub Desktop.
private function InitializeSoundtrack():Void
{
_superMusic = FlxG.sound.play(utilities.Sound.soundtrack, 1, false, false, PlayLoopingPart);
_superMusicLoopPart = FlxG.sound.play(utilities.Sound.soundtrackLoopPart, true);
_superMusic.volume = Globals.musicVolume;
_superMusicLoopPart.volume = Globals.musicVolume;
_superMusicLoopPart.pause();
}
private function PlayLoopingPart():Void
{
_superMusicLoopPart.play();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment