Zmiany

Skocz do: nawigacji, wyszukiwania

Introduction 3 - Glossary of basic Scratch 2.0 blocks

Dodane 1108 bajtów, 07:18, 7 lip 2015
/* Control */
==Control==
 
[[Plik:M_3_80.JPG|center]]
 
The '''Control''' category contains very important blocks – equivalent to instructions controlling programming languages (loops, conditional instructions). Below is a description of all the blocks in this category except for sprite cloning.
 
[[Plik:M_3_81.JPG]]
 
This block stops the script execution for a specified time. The default value can be edited.
 
'''Example:'''
 
[[Plik:M_3_82.JPG]]
 
The block will repeat a set of instructions a specified number of times. The default number of repetitions can be edited.
 
'''Example:'''
 
[[Plik:M_3_83.JPG]]
 
The block will repeat a set of instructions forever, until the interrupting button – the red circle – is pressed. If the script with the '''forever''' block is to stop by itself, a conditional instruction should be used inside it and the '''stop''' block.
 
[[Plik:M_3_84.JPG]]
 
A conditional instruction block; a set of instructions will be executed once if a logical condition inserted after the word '''if''' is true. Conditions are built with the use of blocks of the '''Sensors''' and '''Operators''' categories.
223
edycje