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

#1 2008-07-26 20:38:23

NAM1021
Scratcher
Registered: 2008-07-25
Posts: 15

Help with variables please?!

Hey i was wondering if there was anyway you can use variables other than for score. smile


Click [NAM1021]

Offline

 

#2 2008-07-26 20:41:05

newareagle
Scratcher
Registered: 2008-06-10
Posts: 100+

Re: Help with variables please?!

Yes, variables are useful for everything. Examples: Velocity, Health, Scrolling, Sesning, True/False Blocks, speed, and many many many other things.


My Guitar Hero Game.
8/9 Projects on the Front Page at Once!

Offline

 

#3 2008-07-26 20:43:10

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Help with variables please?!

There are an infinite number of ways to use variables.

They can be used to make scrolling backgrounds.
http://scratch.mit.edu/forums/viewtopic.php?id=2440

They can be used in movement as well.
http://scratch.mit.edu/projects/archmage/72848

Variables are also useful for mathematic forumlas.

Try looking at other peoples' project to see how they use variables.

Last edited by archmage (2008-07-26 20:43:59)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2008-07-27 21:24:58

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Help with variables please?!

Well, they can also tell te state of something, whether it is moving or not, whether you passed the ball or it can be intercepted, or when you touch the "ground" in a game (skydiving, yes, mine). In All About Scratch, there is a stickied topic about this


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

Board footer