This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-10-19 20:29:58

acevipa
Scratcher
Registered: 2007-10-09
Posts: 17

Pick Random Songs

Say if I had a bunch of songs in my scratch project and wanted to make it pick a random song and when that song finished, pick another random song. How would I do this???

Offline

 

#2 2007-10-20 11:45:03

marcsteene
Scratcher
Registered: 2007-08-24
Posts: 48

Re: Pick Random Songs

It would be quite simple. Just do this:

<when green flag clicked>
<forever>
<play sound[ <pick random( whatever )to( something ]and waits>

Offline

 

#3 2007-10-20 11:55:53

marcsteene
Scratcher
Registered: 2007-08-24
Posts: 48

Re: Pick Random Songs

But make sure its Play Sound and Wait

Offline

 

#4 2007-10-20 13:37:52

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Pick Random Songs

Will you be able to upload it with so much songs?  yikes


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#5 2007-10-21 10:22:11

Vanslar
Scratcher
Registered: 2007-03-17
Posts: 100+

Re: Pick Random Songs

make a variable and name the ssongs numbers, then you can just put set[variable] to (pick random_to_) play song[variable]


  I am a royal pain in the butt, I am ~Vanslar~       
      Want better gravity? Go to
Realistic Gravity, By Vanslar 2-D
Want a better way to spend your spare time? CubeField

Offline

 

Board footer