just a suggestion.
Offline
that would be useful,but you can do it already.
<broadcast[
<when I receive[
<if> <( <{ sprite # } > <=> certain number )>
what you want here
<end>
Offline
TheCatAndTheBanana wrote:
<broadcast[
<when I receive[
<if> <( <{ sprite # } > <=> certain number )>
what you want here
<end>
sry i dont unerstand that. imean so that you can use the same broadcast over and over again but to a particular sprite, so all the others dont do something.
Offline
Warhunter wrote:
just a suggestion.
I agree, it would be a nice feature!
The CatAndTheBanana is showing you a way that you can get the same effect with the blocks we have now using a variable called "Sprite #" which you would set before you Broadcast the message. Then, even though all the sprites would get the message, you have the IF block there to make sure that only the sprite you want actually does anything when it receives it.
Offline
however with the same scripting, you can only use variables. simply have a sprite number broadcast variable and instead of broadcasting something, change the variable to a certinnumer then change it back... something like this [blocks]
<when[ broadcasting sprite ]clicked>
<set{ whatever }to( 4 )
<set{ whatever }to( 0 )
<end>
the on sprite num 4
<when green flag clicked>
<forever>
<if><( <{ whatever }> <=> 4 )>
SCRIPT
<end>
<end>
[/blocks]
This is the same method i use with my Lunar Com softwear
Offline
TheCatAndTheBanana wrote:
that would be useful,but you can do it already.
<broadcast[
<when I receive[
<if> <( <{ sprite # } > <=> certain number )>
what you want here
<end>
I never knew there was a "sprite #" reporter block.
Offline