Page 109 - Touchpad_Plus_V3.2_Class 5
P. 109
New variable dialog box
Step 4 Select an option specifying whether the variable is to
be created For all sprites or For this sprite only.
Step 5 Click on OK button.
Once a variable is created you can see some new blocks as shown
alongside.
The Table below shows the blocks and their functions.
Declares the value for the variable created
Changes the value of the variable by a defined
number
Displays variable on the stage
Does not display variable on the stage
The variable created is placed on the stage at a new place. In the blocks area, the
variable name is checked by default. Clicking on the check mark will uncheck the
variable and remove it from the stage.
Aman wants to find the quotient when 12 is divided by 5. The steps to do this are:
Step 1 Delete the cat sprite and add a new sprite Abby from the Library.
Step 2 Click and Drag from the Events block to the stage.
Step 3 From the Variables category, click on Make a Variable button.
Step 4 In the Variable Name dialog box, type N1 as the variable name.
More on Scratch 107

