Sei sulla pagina 1di 2

Sensing blocks Description: What it is? How to use the block?

This blocks identify whether the sprite is touching something such as the mous
-pointer, edge or another sprite. This can be selected from the drop-down
menu.
Webpage: https://wiki.scratch.mit.edu/wiki/Touching_()%3F_(block)
This checks if the sprite is touching a colour that is set by the colour displayed i
the box. Click the box to change the colour. If the spite is touching preselected
colour the block returns "true" and continues with the sequence of the code.
Webpage: https://wiki.scratch.mit.edu/wiki/Touching_Color_()%3F_(block)

The block recognises whether a certain colour on a sprite is touching another


selected colour. The programmer selects the colours by clicking upon the boxe
and choosing a colour. The block is often used in Scratch programs for a
collision detection.

Webpage: https://wiki.scratch.mit.edu/wiki/Color_()_is_Touching_()%3F_(block)
This allows the programmer to select the distance between something (chosen
from the drop-down menu) which is used as a variable. This block works using
the pixels between two objects such as the mouse-pointer, sprite or a sprite's
costume center.
Webpage: https://wiki.scratch.mit.edu/wiki/Distance_to_()_(block)
The blocks allow the programmer to code the sprite to ask a question. When
using this block a pop up box with the question for the user will appear. The use
can input their answer as text and submitted to the program. The answer
inputted is stored in the answer block. The Answer block then automatically
updates with the most recent inputted answer.
Webpage: https://wiki.scratch.mit.edu/wiki/Ask_()_and_Wait_(block)
The block uses the answer to a question as a variable. The block records the
most recent answer (text) imputed by the user from the question block. When a
answer has not been already inputted the value held in the answer block will be
nothing
Webpage: https://wiki.scratch.mit.edu/wiki/Answer_(block) .
This block identifies if a particular button has been pressed. The keys the
programmer can select from are entire English alphabet, numbers, arrows and
has the option of any allowing any key to be pressed.
Webpage: https://wiki.scratch.mit.edu/wiki/Key_()_Pressed%3F_(block)
Mouse down block checks if a mouse button has been pressed.
Webpage: https://wiki.scratch.mit.edu/wiki/Mouse_Down%3F_(block)
The block identifies where the mouse pointer current location. The programmer
can use the left-right position of the mouse as a variable when using this block.
The block is useful for sensing things with the mouse.
Webpage: https://wiki.scratch.mit.edu/wiki/Mouse_X_(block)
The block uses the mouse-pointer's current Mouse Y position. As the same wit
Mouse Y, the block supports in the identification of the mouse-pointer current
position. This block allows the programmer to use the up-down position of the
mouse as a variable.
Webpage: https://wiki.scratch.mit.edu/wiki/Mouse_Y_(block)
When using this block, the programmer can use volume as a variable. Loudnes
block recognises how loud a noise is that is transmitted to a microphone which
uses a scale of 0 to 100. A microphone must be used in conjunction to this
block. When a microphone is being used, a message will appear on the screen
which asks for permission to use the microphone. The block will identify a
loudness of 0 or -1 when the programmer has not accepted the microphone
being used within the Scratch programming environment.
Webpage: https://wiki.scratch.mit.edu/wiki/Loudness_(block)
Video () on () block allows the programmer to use what is happening on a
webcam picture as a variable. The variable value is gained from the motion or
direction of the video.
Webpage: https://wiki.scratch.mit.edu/wiki/Video_()_on_()_(block)

If a computer has a webcam, the block can turn it on, off or flip the picture
horizontally.

Webpage: https://wiki.scratch.mit.edu/wiki/Turn_Video_()_(block)
Block makes the webcam picture more or less transparent. The transparency o
the video can be changed to a certain value using this block.
Webpage: https://wiki.scratch.mit.edu/wiki/Set_Video_Transparency_to_()
%25_(block)
This identified the amount of time that has passed which allows the programme
to use this as a variable. When the timer block is used, it will start at 0 and
gradually increases. The block is used with the Reset Timer block which
requires to be rest at the beginning of the script to ensure the right value is
used/ shown.
Webpage: https://wiki.scratch.mit.edu/wiki/Timer_(block)
The block makes the timer go back to 0. The timer requires to be reset at the
start of a Scratch program to enable the timer to consist of the correct value.
There is not a block that allows the programmer to set a start time on the time.
Webpage: https://wiki.scratch.mit.edu/wiki/Reset_Timer_(block)
The block will identify a value of a selected sprite or stage. The following can be
used as a value X position, Y position, direction, costume/Backdrop, size,
volume and other variables local which are specific to the sprite. The block
allows programmers to have connectivity between sprites values. As a result,
they are able to program sprites/ Stages to be variables of each other. For
example, the way a sprite carries out a function can be dependent on the value
of other another spite.
Webpage: https://wiki.scratch.mit.edu/wiki/()_of_()_(Sensing_block)
Block uses the current date or time as variable. The block determines one of th
following current year, month, date, day of the week, hour, minutes or seconds
dependent on what has been selected using the drop-down menu. The data is
gathered from the programmers computer clock and is shown in the 24-hour
clock.
Webpage: https://wiki.scratch.mit.edu/wiki/Current_()_(block)

The block finds the number of days since January 1st 2000.

Webpage: https://wiki.scratch.mit.edu/wiki/Days_Since_2000_(block)
The block allows the programmer to use a username as a variable, although th
programmer must be logged in to the Scratch website. Username block can be
useful when saving progress of a project.
Webpage: https://wiki.scratch.mit.edu/wiki/Username_(block)

Potrebbero piacerti anche