can some one make a tutorial to make a <received broadcast>
Offline
If you mean 'when i receive ______' then right click on that block and click 'help'.
Basically whatever commands are attached to it happen only when the broadcast block is used in another script.
Offline
No. a boolen block that receives a broadcast
Offline
Lord_fawful13 wrote:
No. a boolen block that receives a broadcast
Oh.
Offline
Have this script:
[blocks]<when I receive[ something
<set{"continue"}to(1
[/blocks]
And here's the boolean:
[blocks]
<("continue"<=>1)>
[/blocks]
I hope that's what you wanted.
Last edited by bladezer (2010-10-30 02:10:34)
Offline
No, a [blocks]<received[ ]?> block
Offline
[block]<received[ ]?>[/block]
Offline
i dont think there is a block like that yet. ive heard there'll probably be one in scratch 2.0, though. but there is a longer, more complecated way that involves a lot of work. take the "brodcast" block and the "change [] by ()" block. put "when flag clicked" all the other blocks, "brodcast ()" "change [] by (1)" "when i recive []" "if [] = (1)" then what u want it to do. and, no. i dont know how to do the blocks thing where u can get the blocks in a post. but there is no boolean "recive" block. hope this wasnt too confusing. i tend to confuse people when i start talking about scripts. im pretty sure this works, but i think there has to be a forever loop around the "if" block.
Offline
Umbreon101 wrote:
i dont think there is a block like that yet. ive heard there'll probably be one in scratch 2.0, though. but there is a longer, more complecated way that involves a lot of work. take the "brodcast" block and the "change [] by ()" block. put "when flag clicked" all the other blocks, "brodcast ()" "change [] by (1)" "when i recive []" "if [] = (1)" then what u want it to do. and, no. i dont know how to do the blocks thing where u can get the blocks in a post. but there is no boolean "recive" block. hope this wasnt too confusing. i tend to confuse people when i start talking about scripts. im pretty sure this works, but i think there has to be a forever loop around the "if" block.
Yes, there isn't a received boolean but you can make one with what I had shown earlier.
Offline
bladezer wrote:
Umbreon101 wrote:
i dont think there is a block like that yet. ive heard there'll probably be one in scratch 2.0, though. but there is a longer, more complecated way that involves a lot of work. take the "brodcast" block and the "change [] by ()" block. put "when flag clicked" all the other blocks, "brodcast ()" "change [] by (1)" "when i recive []" "if [] = (1)" then what u want it to do. and, no. i dont know how to do the blocks thing where u can get the blocks in a post. but there is no boolean "recive" block. hope this wasnt too confusing. i tend to confuse people when i start talking about scripts. im pretty sure this works, but i think there has to be a forever loop around the "if" block.
Yes, there isn't a received boolean but you can make one with what I had shown earlier.
Thats all well and good but it wont return the boolen to false if it doesn't reseve the broadcast
Offline
Lord_fawful13 wrote:
bladezer wrote:
Umbreon101 wrote:
i dont think there is a block like that yet. ive heard there'll probably be one in scratch 2.0, though. but there is a longer, more complecated way that involves a lot of work. take the "brodcast" block and the "change [] by ()" block. put "when flag clicked" all the other blocks, "brodcast ()" "change [] by (1)" "when i recive []" "if [] = (1)" then what u want it to do. and, no. i dont know how to do the blocks thing where u can get the blocks in a post. but there is no boolean "recive" block. hope this wasnt too confusing. i tend to confuse people when i start talking about scripts. im pretty sure this works, but i think there has to be a forever loop around the "if" block.
Yes, there isn't a received boolean but you can make one with what I had shown earlier.
Thats all well and good but it wont return the boolen to false if it doesn't reseve the broadcast
Just have:
[blocks]<set{ "continue" }to(0[/blocks]
at the beginning of the script.
Last edited by bladezer (2010-10-31 10:04:43)
Offline