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

#1 2008-09-04 19:16:27

logcat
Scratcher
Registered: 2008-06-12
Posts: 2

i neeeed help

i want to make a game but for some reson i tell it to brod cast but it will not can you help me?
<when I receive[
<broadcast[  ]and wait c>
<broadcast[
<when I receive[
<broadcast[  ]and wait c>

THANKS!

Last edited by logcat (2008-09-04 19:17:34)

Offline

 

#2 2008-09-04 23:24:49

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: i neeeed help

Could you be a bit more specific? Try writing out the script in plain english, for example:

When Flag Clicked:
Move 10 Steps
Broadcast [something]

Thanks!


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#3 2008-09-04 23:53:48

vikaros
Scratcher
Registered: 2007-06-04
Posts: 100

Re: i neeeed help

Broadcasts can work like yelling.  One sprite yells and all others can hear them and do something in response.  The sprite that does the yelling has a block that shouts out the broadcast.

[blocks]<broadcast[[/blocks]

All other scripts that want to listen should have a

[blocks]<when I receive[[/blocks] and then how they want to respond can be connected underneath:

[blocks]<when I receive[
<point towards(
<turn cw(  )degrees>
<turn cw(  )degrees>
<turn cw(  )degrees>
<turn cw(  )degrees>[/blocks]

In this case this might be like waving in response!

For an actual example you can check out how I used broadcasts here to create a conversation between two sprites: http://scratch.mit.edu/projects/vikaros/189960

Offline

 

Board footer