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
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