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

#1 2010-03-28 09:29:34

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

I Need Help With Operator Blocks!

I don't understand some operator blocks like the math ones. The only thing I think
people would use them for is for a simple calculator. I think I get the rest of those blocks:  smile


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#2 2010-03-28 17:15:15

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: I Need Help With Operator Blocks!

Like which ones?


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#3 2010-03-29 10:30:01

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: I Need Help With Operator Blocks!

The math blocks can be used to make more complicated things with variables.

Offline

 

#4 2010-04-01 11:03:14

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: I Need Help With Operator Blocks!

What is the point of those "join world with..." blocks?


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#5 2010-04-01 11:05:03

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: I Need Help With Operator Blocks!

I know this is off track.. but do you know any REALLY good OS projects?


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#6 2010-04-01 11:12:29

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: I Need Help With Operator Blocks!

qwertypower wrote:

What is the point of those "join world with..." blocks?

That's the "join" block. Basically, you put two things into either side of that block and it joins them both together into one.

For example, you could make it say "join [hi ] [there]" and it would turn it into "hi there". You can also drag variables into either end, which can be really useful.

Last edited by hmnwilson (2010-04-01 11:12:51)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#7 2010-04-01 16:04:58

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: I Need Help With Operator Blocks!

Thannk You! Very Helpful!  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#8 2010-04-02 09:08:17

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: I Need Help With Operator Blocks!

the maths blocks are very useful for movment and conversion. If you wanted to convert seconds to minutes you'd use the / block (divide). you could put ((number of seconds)/(60)) to get the number of minutes. if you want something to be exagerrated, such as if you have a variable called "regular movement" and you want a sprite to move twice as many steps as that, you would have ((regular movment) * (2)) to double the value and move twice as fast. The sin, cos, tan operators are great for getting smooth curves and such. try this to see what I mean:

when flag clicked
|repeat (480)
||change x by (1)]
||set y to ((cos(x position)))]
||stamp]
| ----------------
-----------------


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#9 2010-04-02 10:39:42

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: I Need Help With Operator Blocks!

So I should copy that script into scratch blocks and see what happens?


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

Board footer