Fangames > Programming Questions
Making music not restart
Hectorpaddy:
Hey guys, I was just wondering what I have to do to to make the music not resetting, because I can't really figure it out on my own.
Sephalos:
--- Quote from: Hectorpaddy on June 24, 2013, 08:38:29 AM ---Hey guys, I was just wondering what I have to do to to make the music not resetting, because I can't really figure it out on my own.
--- End quote ---
What engine are you using?
If you're using Yuutu go in the room editor and right click the music object and click creation code. Then enter something similar to this:
if !sound_isplaying(song) { sound_loop(song); }
Then in the scripts folder and find killPlayer
Find and remove this line of code: sound_stop_all();
And change the line sound_play(sndOnDeath); to sound_play(sndDeath);
In the "world" object find the "Press-R" event and remove the line sound_stop_all();
Hope this helps
Hectorpaddy:
Thank you a lot, i suggested it have to change something in playerkill, I just didn't know what.
lemonxreaper:
dont you also have to go into the press R event in the player and remove the same line of code?
Sephalos:
--- Quote from: lemonxreaper on June 25, 2013, 07:08:09 AM ---dont you also have to go into the press R event in the player and remove the same line of code?
--- End quote ---
Oops, yeah I totally forgot.
I'll edit my post
Navigation
[0] Message Index
[#] Next page
Go to full version