Pages: 1
Topic closed
Many suggestions have been this block:
While we are all waiting on our toes to see if this will be available in Scratch 2.0, there is still a way to do it in Scratch right now. This helps me in a lot of my projects, so I will share my technique. (These are all examples, so you can put these variables in all sorts of different scripts.)
This sets the variable to No, which means "Meow" is not broadcasted yet.
--------
After the fisheye effect is changed and it waits one second, the variable is set to Yes, which means "Meow" is broacasted.
This script is what you used before, without the features that the variable offers.
Or you could use this script to make it change when someting is broadcasted and then recieved.![]()
--------
These are all the scripts you can use as you would with the "I receive" block.
Last edited by coka (2010-06-07 12:45:15)
Offline
Great Hopefully this will make people stop asking for the block.
Offline
juststickman wrote:
Great
Hopefully this will make people stop asking for the block.
For beginners this block would be very useful, so I think it still should be implemented, but this is just another way of doing this for now. I agree that there are tons of duplicate threads asking for this block. The Scratch Team knows about it, so no need to keep posting them. Thanks!
Offline
This way takes to long for lazy me. (Though I do use it)
Offline
Very useful, but I think you have something wrong - instead of waiting 1 second after the green flag is clicked and then changing the variable, shouldn't the variable be changed when something is broadcasted? Still, great job - definitely worth reading over for some newer users.
Offline
coolstuff wrote:
Very useful, but I think you have something wrong - instead of waiting 1 second after the green flag is clicked and then changing the variable, shouldn't the variable be changed when something is broadcasted? Still, great job - definitely worth reading over for some newer users.
The variable is the broadcast block, just in "disguise" You could use broadcasting too, but why make extra scripts? Just use When flag clicked, forever if <Broadcasted Meow = Yes>... Instead of When I receive. Really, you can do what ever you want. Everyone has a different way of programming.
Thanks for the post!
Last edited by coka (2010-06-05 19:03:17)
Offline
coka wrote:
coolstuff wrote:
Very useful, but I think you have something wrong - instead of waiting 1 second after the green flag is clicked and then changing the variable, shouldn't the variable be changed when something is broadcasted? Still, great job - definitely worth reading over for some newer users.
The variable is the broadcast block, just in "disguise"
You could use broadcasting too, but why make extra scripts? Just use When flag clicked, forever if <Broadcasted Meow = Yes>... Instead of When I receive. Really, you can do what ever you want. Everyone has a different way of programming.
Thanks for the post!
What I meant was that the variable doesn't change as a result of something being broadcasted; just as a result of the green flag having been clicked.
Offline
coolstuff wrote:
coka wrote:
coolstuff wrote:
Very useful, but I think you have something wrong - instead of waiting 1 second after the green flag is clicked and then changing the variable, shouldn't the variable be changed when something is broadcasted? Still, great job - definitely worth reading over for some newer users.
The variable is the broadcast block, just in "disguise"
You could use broadcasting too, but why make extra scripts? Just use When flag clicked, forever if <Broadcasted Meow = Yes>... Instead of When I receive. Really, you can do what ever you want. Everyone has a different way of programming.
Thanks for the post!
What I meant was that the variable doesn't change as a result of something being broadcasted; just as a result of the green flag having been clicked.
Do you mean like this?
or this?
Or something else, I guess I don't exactly understand what you mean.
Last edited by coka (2010-06-06 18:14:48)
Offline
coka wrote:
coolstuff wrote:
coka wrote:
The variable is the broadcast block, just in "disguise"You could use broadcasting too, but why make extra scripts? Just use When flag clicked, forever if <Broadcasted Meow = Yes>... Instead of When I receive. Really, you can do what ever you want. Everyone has a different way of programming.
Thanks for the post!
What I meant was that the variable doesn't change as a result of something being broadcasted; just as a result of the green flag having been clicked.
Do you mean like this?
http://imgur.com/0lDOi.gif
or this?
http://imgur.com/YHRb5.gif
Or something else, I guess I don't exactly understand what you mean.
The latter - sorry if I was unclear before.
Offline
coolstuff wrote:
coka wrote:
coolstuff wrote:
What I meant was that the variable doesn't change as a result of something being broadcasted; just as a result of the green flag having been clicked.Do you mean like this?
http://imgur.com/0lDOi.gif
or this?
http://imgur.com/YHRb5.gif
Or something else, I guess I don't exactly understand what you mean.The latter - sorry if I was unclear before.
Really, I think you can use this however you want I guess. I'll edit it a little bit.
Offline
coka wrote:
coolstuff wrote:
coka wrote:
Do you mean like this?
http://imgur.com/0lDOi.gif
or this?
http://imgur.com/YHRb5.gif
Or something else, I guess I don't exactly understand what you mean.The latter - sorry if I was unclear before.
Really, I think you can use this however you want I guess. I'll edit it a little bit.
Oh, I see. I wasn't looking deep enough into it - thanks for clearing it up! I was thinking that the variable was irrelevant to how the broadcast worked, but I just wasn't looking at the scripts well enough. Silly me...
Offline
Topic closed
Pages: 1