hi i am trying to make a scratch randomizor so when ever i press m it plays a different tune can anyone help?
What i have got so far:<when[ M ]key pressed><stop all sounds><broadcast[ Random music>
this broadcasts to
<when I receive[ random music><if><play sound[ ]and waits><play sound[ ]and waits><play sound[ ]and waits><play sound[ ]and waits>
thats what i have got so far
Offline
[blocks]<pick random( )to( [/blocks]
Is that what you want?
Offline
do you mean like when you press a button it plays a random song? try when (button) pressed, pick random one to (however many sounds there are). make a variable called soundtracks and make it set to the number. then make it check: if soundtracks = 1, play this song. if soundtracks = 2, play this song... and so on. hope this helps
(and if you want it to only play each tune once, try putting in each if, broadcast song # played.)
Offline