Zmiany

Skocz do: nawigacji, wyszukiwania

Introduction 3 - Glossary of basic Scratch 2.0 blocks

Dodane 1361 bajtów, 07:01, 7 lip 2015
Hides the display of the value of the variable on the stage. It works is the same way as when we edit the checkbox of the variable name to disable it.
 
==Events==
 
[[Plik:M_3_70.JPG|center]]
 
The '''Events''' category includes blocks which start scripts reacting to specific events (e.g. clicking a sprite with the mouse, pressing a key on the keyboard) and related to message support (self-generating events in the programme). Below is a description of almost all the blocks in this category.
 
[[Plik:M_3_71.JPG]]
 
The basic block. It starts the majority of scripts. Scripts are run when we click the green flag on the screen – start the programme.
'''Example:'''
 
[[Plik:M_3_72.JPG]]
 
Runs the script after pressing a specific key on the keyboard. We select a key from a drop-down list.
 
'''Examlple:'''
 
[[Plik:M_3_73.JPG]]
 
The block runs the script when we left-click the sprite.
 
'''Example:'''
 
[[Plik:M_3_74.JPG]]
 
The block runs the script when a change of background occurs. The background name can be selected from a drop-down list. The script will be started when the background becomes the current one (displayed on the stage).
 
'''Example:'''
 
[[Plik:M_3_75.JPG]]
 
The block starts the script when a message of the specified name selected from the drop-down list is broadcast. We define the message in the '''broadcast message''' block. Broadcasting and receiving messages enables communication between sprites as well as the stage. In this way a sprite can run the script of another sprite.
223
edycje