Game Maker Language リファレンス > 組み込み関数 用途別 > サウンド > audio_stop_music
BGMを停止します(非推奨)
audio_stop_music();
注意! この関数は非推奨です。代わりにaudio_play_sound()を使用してください
This function will stop any background music that is currently playing. This function only affects the sounds that have been played by the audio_play_music function.
if !global.Music { audio_stop_music(); } else { audio_play_music(snd_MusicIntro, true); }
The above code checks the global variable "Music" and if it returns false, it will stop all background music that is currently playing, and if it returns true, it will loop the music indexed in the variable "snd_MusicIntro".