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

#1 2007-08-28 10:13:30

manoftin
Scratcher
Registered: 2007-05-20
Posts: 2

random brodcast

<pick random(  )to( <broadcast[
I think in the next scratch version you should be able to brodcast ramdomly. It ruined 2 of my projects already. Who's with me!?!  smile  smile  tongue

Last edited by manoftin (2007-08-28 10:17:11)

Offline

 

#2 2007-08-28 10:32:40

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: random brodcast

You can broadcast randomly by putting this in:

<when green flag clicked>
<forever>
<wait( <pick random( 1 )to(10 )secsc>
<broadcast[ yourbroadcast<end>

Last edited by archmage (2007-08-28 10:33:00)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2007-08-29 08:23:41

beny
Scratcher
Registered: 2007-07-24
Posts: 100+

Re: random brodcast

if you want it to brodcast random then do this:
make a varible
When green flag clicked
forever(or repeat or just ounce)
*change(varible name) by pick random # to #
*if varible name=1
**brodcast1
*if varible name=2
**brodcast2
and so on
so there you have it(if i'm thinking right)


more people like the letter B than the letter A!
i'm going for 250 posts!

Offline

 

Board footer