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

#1 2010-03-21 20:05:52

IGozSmoov
Scratcher
Registered: 2010-03-12
Posts: 2

How do you use Numbers, Varibles, and Pen

Idk how to use thoes please help

Offline

 

#2 2010-03-21 21:35:25

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

Re: How do you use Numbers, Varibles, and Pen

"Numbers" doesn't go by that name anymore, it's now called operators. The only reason it says "numbers" in the forum blocks is because it hasn't been updated since the name was changed.

But anyway...

Numbers/operators has a lot of different functions. You have blocks for addition, subtraction, multiplication and division, a block to pick random numbers, and lots more. The "and" block allows you to put two "boolean" blocks, which means it can only be either true or false and are the hexagonal-shaped, into a single space. It checks if both of the things are true. The same goes for "or", except it checks of only one is true. Then there's more that you won't need unless you're into more advanced programming.

Variables are really useful. Basically, you first need to create a variable. Then you can use the "set" or "change" blocks to change the number in it (by default it's 0). This is really useful if you're making lives or scores. Lists are like variables, except they can hold many different numbers/letters.

Pen you won't use much. Basically, it draws marks on top of the background, but it's really useful if you're making a paint program. The "pen down" block is like putting a pen on a piece of paper, and "pen up" is like taking it off. When the pen is down everywhere the sprite moves it draws the pen mark. You can change the size and color of the lines it makes. The clear block clears all marks on the background, and the stamp block makes an exact copy of the sprite.

I hope you can understand this. It's hard to describe entire sections.


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

 

#3 2010-03-22 04:22:58

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: How do you use Numbers, Varibles, and Pen

For the pen blocks, you could view Lanie's Pen Paint and study the scripts...  smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#4 2010-03-22 18:27:45

Larry828
Scratcher
Registered: 2007-05-30
Posts: 100+

Re: How do you use Numbers, Varibles, and Pen

For variables, you're invited to watch an introduction to using them featuring Scratch Cat: http://scratch.mit.edu/projects/Larry828/940874.

The project is called "Use a Switch" and shows how to create a variable with only two values (ON and OFF) and then use it to turn the Starfish into an astronaut!

All the scripts appear on the screen as they are needed, so you get to see how things work.

And if you enjoy it you can download it to study it some more.

Offline

 

Board footer