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

#1 2011-02-13 19:58:03

JJ5x55
Scratcher
Registered: 2011-02-12
Posts: 4

brodcast?

the brodcast tool brodcasts a message right? but where? also what does the when i recieve button do? plus any other complicated buttons explained? here are meh problem blocks:
When i recieve(____)
Brodcast (____)
(___)-(___) and the whole variables thing
thats pretty much it, but any other complicated ones plz explain that i didnt mention that are just plain complicated
THX!


http://i24.photobucket.com/albums/c49/ShaylaFranklin/burrito.gif "monstrous things wrapped in tinfoil, and filled with what would seem to be the contents of an entire margarita-mill dinner, including grilled meat, rice, beans, guacamole, tomatoes, salsa, sour cream, orange cheese, and probably a lot of other things that no man ever intended to see the inside of a tortilla"

Offline

 

#2 2011-02-13 20:12:16

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: brodcast?

Ok, when you make a script like this:
http://i55.tinypic.com/34qsns7.gif

And if your sprite has this:
http://i51.tinypic.com/1zqszk8.gif

Then when the green flag is clicked, the message "thing" will be sent.  Any sprite with the "When I receive [thing]" top block will run the blocks underneath.  In this case it will move 10 steps.  Any sprite with "When I receive [thing]" will be triggered, not just the sprite that sent the message.

This way, you can send a message from one sprite to another, or make multiple sprites do many things at once, or make multiple sprites do the same thing at once, a lot of things really.

Last edited by Kileymeister (2011-02-13 20:13:52)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2011-02-13 20:24:08

Lar-Rew
Scratcher
Registered: 2010-02-19
Posts: 100+

Re: brodcast?

To answer your question about variables, variables are strings of text that you can set to whatever you want.  You can set variables with the set [] to [] block.  You can drag and drop variables into () and [] slots.  () denotes a slot meant for numbers only, while [] can be anything.  A piece of text put into a () slot will act as if you had typed in 0.   ()+(), ()-(), ()= (), and other arithmetical and logic booleans (true/false) do what you would think (subtract to numbers, see if two numbers are equal, etc.).  Hope that helps!

Last edited by Lar-Rew (2011-02-13 20:24:48)

Offline

 

#4 2011-02-13 20:29:28

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: brodcast?

Also if you want to learn complex things like trigonometry, here's a brief overview to make it a bit simpler.  Keep in mind it's still a complicated theory which can't be simplified very much.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#5 2011-02-13 20:34:20

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: brodcast?

the broadcast does send a message.it goes to every sprite.the viewer can't see this message.the [blocks]  <when I receive[ [/blocks] block is like the [blocks]<when green flag clicked>[/blocks]only instead of the green flag,it's a broadcast.you can even change the broadcast by clicking on the triangle.when you do this,a box will come up.on the bottom is the wordnew.click that to make a new broadcast.
    variables are like scores.to make a variable,press make a variable.a window will come up.type in what you want it to be called.then click OK.on the screen will be an oval with the variable name.if you right click on it,a window will pop up.*normal read*is what it already looks like.large readout makes it bigger without the name.slider makes it turn into a slider

hope this helped!


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#6 2011-02-13 21:32:44

ian528
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: brodcast?

You can also right click on any script, and click help. It will tell you all about it.  smile

Offline

 

#7 2011-02-24 18:11:38

JJ5x55
Scratcher
Registered: 2011-02-12
Posts: 4

Re: brodcast?

thanks for the help, i just figured out how to fix my problem, i'll be uploading this project soon, thanks for everything! :-)


http://i24.photobucket.com/albums/c49/ShaylaFranklin/burrito.gif "monstrous things wrapped in tinfoil, and filled with what would seem to be the contents of an entire margarita-mill dinner, including grilled meat, rice, beans, guacamole, tomatoes, salsa, sour cream, orange cheese, and probably a lot of other things that no man ever intended to see the inside of a tortilla"

Offline

 

Board footer