<< Chapter < Page Chapter >> Page >
  • the Stage, shown in white in the upper right,
  • a small program consisting of three scripts shown in the middle panel, and
  • two variables shown in gray near the top of the lower-left panel and also shown in the upper-left corner of the Stage.

The toolbox buttons

If you have worked through the Scratch tutorials, you will recognize that the material in the lower-left panel is always associated with one of the following eighttoolbox buttons in the upper-left panel:

  • Motion
  • Looks
  • Sounds
  • Pen
  • Control
  • Sensing
  • Operators (previously Numbers)
  • Variables

In other words, when you click on one of the buttons in the upper-left panel, it exposes a set of tools that you can use to write your program. Those toolsappear in the lower-left panel.

When one of those eight buttons is clicked, it becomes completely colored and the tools associated with that button are displayed below it. The orangebutton has been selected in Image 1 . Since you can't read the label on that button, I will tell you that the label on the orange button reads Variables .

A full-size view of the Variables area

Image 2 presents a full-size view of the two left-most panels from Image 1 showing the tools that are exposed by the Variables button.

Tools in the Variables toolbox: When you first click the Variables button, only two gray buttons are exposed in the bottom panel of Image 2 . One gray button is labeled Make a variable and the other gray button is labeled Make a list . The orange material in Image 2 was produced by clicking twice on the button labeled Make a variable and entering a name for each variable.

Image 2. a view of the variables area of the scratch user interface.

Missing image.
Image 2. A view of the Variables area of the Scratch user interface.

Create two variables

Click here for instructions on creating variables.

Image 2 shows that this Scratch program contains two variables with the following names:

  • Counter
  • counter

I purposely spelled the names of the two variables the same and made them differ only by the case of the first letter to illustrate that Scratch is casesensitive insofar as the names of the variables is concerned. Even though these two variable names contain the same letters, they are two different variablesbecause one name begins with an upper case "C" and the other name begins with a lower-case "c".

Allowable operations for variables

There are four programming blocks (in the bottom panel of Image 2 ) associated with each variable. As you learned from working through the tutorials, you can drag theseblocks into the programming area in the center pane in Image 1 to actually write the program. Thus, there are four different operations that you can perform on a variable:

  • You can set the value of the variable to a specified value.
  • You can change the value of the variable by a specified value.
  • You can show a variable on the stage.
  • You can hide a variable.

(You can actually perform the last two operations simply by clicking the block with no requirement to drag it into the center pane. Severaloperations that required double-clicking prior to v1.4 can now be accomplished with a single click.)

Questions & Answers

what is variations in raman spectra for nanomaterials
Jyoti Reply
I only see partial conversation and what's the question here!
Crow Reply
what about nanotechnology for water purification
RAW Reply
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
yes that's correct
I think
what is the stm
Brian Reply
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
How we are making nano material?
what is a peer
What is meant by 'nano scale'?
What is STMs full form?
scanning tunneling microscope
how nano science is used for hydrophobicity
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
what is differents between GO and RGO?
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
what is Nano technology ?
Bob Reply
write examples of Nano molecule?
The nanotechnology is as new science, to scale nanometric
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
what school?
biomolecules are e building blocks of every organics and inorganic materials.
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
sciencedirect big data base
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Teaching beginners to code. OpenStax CNX. May 27, 2013 Download for free at http://cnx.org/content/col11498/1.20
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Teaching beginners to code' conversation and receive update notifications?