Zmiany

Skocz do: nawigacji, wyszukiwania

Introduction 3 - Glossary of basic Scratch 2.0 blocks

Dodane 2177 bajtów, 07:42, 7 lip 2015
/* Sensing */
==Sensing==
 
[[Plik:M_3_89.JPG|center]]
 
The '''Sensing''' category includes blocks related to the recognition of different situations that occur on the stage concerning, among others, sprites and the mouse, blocks to pull data from the keyboard, and blocks associated with the timer, date and camera. Below is a description of most blocks in this category, except for the camera operation and date blocks.
 
[[Plik:M_3_90.JPG]]
 
Checks if the sprite is touching the item selected from the drop-down list. This can be any other sprite, the mouse cursor or the edge of the stage. This block is used most often in conjunction with one of the following blocks: '''if, repeat until, wait until'''.
 
'''Example:'''
 
[[Plik:M_3_91.JPG]]
 
Checks if the sprite is touching a specified colour on the stage. To select a colour we should click the mouse in the box with the colour in the block, and then select the colour from the available colours using the mouse cursor. This block is used most often in conjunction with one of the following blocks: '''if, repeat until, wait until'''.
 
'''Example:'''
 
[[Plik:M_3_92.JPG]]
 
Checks if the selected sprite character colour is touching a specified colour on the stage. To select a colour we should click the mouse in the box with the colour in the block, and then select the colour from the available colours using the cursor. This block is used most often in conjunction with one of the following blocks: '''if, repeat until, wait until'''.
 
'''Example:'''
 
[[Plik:M_3_93.JPG]]
 
[[Plik:M_3_94.JPG]]
 
The current distance of the sprite from an item selected from the drop-down list – mouse cursor or another sprite. It can be used as an argument in expressions. The distance is measured from the centre of the sprite – we can set it by editing the costume.
 
'''Example:'''
 
[[Plik:M_3_95.JPG]]
 
Displays in a bubble the text entered in the block box, as well as a window with an edit box on the stage. It waits for input of data in the edit field and confirmation by pressing Enter or clicking in the edit box. The information entered by means of the keyboard is available in scripts with the use of the block '''answer'''.
 
'''Example:'''
223
edycje