- If sound is not playing
- Start block
- If next room exists
- Start block
- go to next room
- set variable sound to zero (fixes a bug)
- exit event
- end block
- end block
- else
- start block
- restart current room
- set sound to 0
- exit event
- end block
- end block
Music Problems
Started by Smiley Showdown, Feb 03 2011 01:01 PM
7 replies to this topic
#1
Posted 03 February 2011 - 01:01 PM
So, I'm making a game based on music and I have the small problem of it not advancing rooms when it stops like it is supposed to. My actions are
#2
Posted 03 February 2011 - 01:05 PM
How are you playing the sound?
-MoK
-MoK
#3
Posted 03 February 2011 - 01:41 PM
Translationg your actions to code (with a little "free translation") I have this:
Second, you're ending more blocks than you're starting. There must be something else that you're not telling us. Tell it, because there seems to be no reason to remain at the current room without tha music playing.
Or is it on step event, but into an "if" statement that you're not showing? Perhaps that "if" is returning false.
if sound_isplaying(snd_music)==false
{
if room!=room_last
{
room_goto_next()
sound=0
exit
}
}
else
{
room_restart()
sound=0
exit
}
}First of all, it will restart your room if the music IS playing. So, I assume this is not on step event, or the bug would be really annoying. In which event is it?Second, you're ending more blocks than you're starting. There must be something else that you're not telling us. Tell it, because there seems to be no reason to remain at the current room without tha music playing.
Or is it on step event, but into an "if" statement that you're not showing? Perhaps that "if" is returning false.
#4
Posted 04 February 2011 - 12:59 AM
If it would help, i'll post a copy of my game for you guys/ girls to look over. It's in the step event of my control object, and I will post the file when i get back to school tomorrow
#5
Posted 04 February 2011 - 10:43 AM
I would prefer if you posted your step event, because I can't always run game maker.
But I'd bet someone else would be able to.
But I'd bet someone else would be able to.
#7
Posted 07 February 2011 - 01:25 PM
Bump! You might want the dude's library final to make it work right
Edited by Smiley Showdown, 07 February 2011 - 01:27 PM.
#8
Posted 07 February 2011 - 01:34 PM
You didn't answer my question.
-MoK
-MoK
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











