I think its acting up. i made a music variable.And its not responding right.
<when green flag clicked>
<forever>
<if><( <{ music }> <=> 1 )>
<repeat until>< <not> <( <{ music }> <=> 1 )> >>
<play sound[ song
<end>
<end>
<end>
It responds by playing song when music equals another number.
Offline
Are you sure it's not just ending the song from the previous time that Music=1 ? It will take some time for the song to complete playing. While it is playing, it won't matter what value the variable has.
Offline
here's what I always do
[forever:
[play sound (music) until done]
another script somewhere else:
set music to (2)
stop all sounds <-- this causes the music to stop immediately and restart music
all you have to do is assort the music properly
if you other things in the way you do this:
[forever:
[play sound ((music) + **) until done]
or
[forever:
[play sound ((music) - **) until done]
I use this in all my games and it seems to work the best of any functions
Offline