I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: Junior Nintendista on April 03, 2015, 08:25:52 AM

Title: sound loop
Post by: Junior Nintendista on April 03, 2015, 08:25:52 AM
How do the music continue when the player dies?
Title: Re: sound loop
Post by: Sudnep on April 03, 2015, 09:21:35 AM
If you're using yuuutu engine:

In the playMusic Room Start Event:

if (BGM!=0) { if !sound_isplaying(BGM) { sound_loop(BGM) } }

(click to show/hide)

In the creation code (this is set in the room) make BGM = <background music you want to loop>

(click to show/hide)
Title: Re: sound loop
Post by: Junior Nintendista on April 04, 2015, 04:12:04 PM
It did not work, the music still repeating when I die.
Title: Re: sound loop
Post by: kilgour22 on April 05, 2015, 12:52:22 PM
There's a thread for this already in game design. Find it and it will answer your question.
Title: Re: sound loop
Post by: infern0man1 on April 05, 2015, 05:43:57 PM
https://www.iwannacommunity.com/forum/index.php?topic=33.0

Locked.