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

#1 2011-05-10 20:30:23

blueazul
Scratcher
Registered: 2011-04-07
Posts: 5

numbers.

what do the number blocks do  smile   sad   mad   cool   tongue   big_smile   hmm   neutral

Offline

 

#2 2011-05-10 20:37:22

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: numbers.

mostly, they help compare variables to number, other variables, or a combination of both numbers and variables.  They're mainly used with this block:

<(  <=>  )>

and with the If block, the If-Else block, the Repeat Until block, the Forever If Block, and the Wait Until block.

<set{ X }to( 5 )>
<if><( <{ X }> <=> 5 )>
     Do this
<end>

The <pick random(  )to(  )> is exactly what is says.


((  <mod>  )) finds the remainder (e.g. 8 mod 3 = 2)


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2011-05-10 21:33:32

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: numbers.

If you're talking about the numbers category, the name has been changed to 'operators.' MoreGamesNow seems to have a pretty good description of most of these blocks. You can read more about this category and the blocks in it here.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2011-05-10 21:46:22

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: numbers.

Thanks Karakou, wiki is much more complete.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer