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

#1 2010-02-09 12:19:46

AngstSTFU
Scratcher
Registered: 2010-02-09
Posts: 1

Question?

What exactly are the "Variable" and "Operator" functions used for?

o3o;;

Offline

 

#2 2010-02-09 12:24:02

Mr_X
Scratcher
Registered: 2009-09-10
Posts: 1000+

Re: Question?

Nice name
Operator is basically like this
<when green flag clicked>
<forever if> (( <mouse x> <+> <mouse y> ))
Do something

<end>
If Sprite 2 Clicked
Forever if Costume# = 2
Do something you want it to do

Something like that

And variables I haven't quite figured out yet

Last edited by Mr_X (2010-02-09 12:24:18)


http://img99.imageshack.us/img99/8656/exveemonc.gif The rules of the internet:
1) Every woman is a man    2) Every man is a child    3) Every child is an FBI agent                                        I have psychopathic tendencies. Be afraid

Offline

 

#3 2010-02-09 13:03:17

steppenwulf
Scratcher
Registered: 2009-07-23
Posts: 1000+

Re: Question?

Here is a simple example I made for you Angst. Take a look at the script and see how I used variables and operators.


I'm graduating HS this April and going to college in the Fall.

Offline

 

#4 2010-02-09 13:52:55

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Question?

variables are small pieces of memory set aside to store values (numbers) and strings (text) in to be called up at a later date.
Operators are ways of using these variables in different ways, such as adding them, finding out how many letters there are in then so on.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer