Zmiany

Skocz do: nawigacji, wyszukiwania

Introduction 3 - Glossary of basic Scratch 2.0 blocks

Dodane 680 bajtów, 19:28, 6 lip 2015
The second button, '''Make a list''', is used to create variables to store more complex data, which we do not use in scenarios developed for classes for students in grades four to six as part of the “Masters of Coding” programme. We will use variables only to store numerical data. After clicking on the '''Make a variable''' button a dialog box will appear on the screen, as shown below. We need to specify the variable name and select its availability – whether the variable is to be available for all sprites (also for the stage) or only for a specific sprite (in this case other sprites cannot see that variable; they can also have a variable with the same name, but these will be different variables).
 
[[Plik:M_3_62.JPG|center]]
 
After confirming with the '''OK''' button blocks will appear to enable operations on variables.
 
[[Plik:M_3_63.JPG]]
 
The current value of the variable. It can be used as an argument in expressions. Checking the checkbox on the left displays the current value of a variable on the stage.
 
'''Example:'''
 
[[Plik:M_3_64.JPG]]
 
When we right-click in the block with the name of the variable in the data area we can select one of two options from the context menu: changing a variable name or deleting it.
 
[[Plik:M_3_65.JPG]]
 
Assigns the variable value. We can edit the default value, we can also insert an expression in its place.
 
'''Example:'''
223
edycje