Sensing Category

1. touching ()?

If the sprite is touching the mouse-pointer, the edge, or another specified sprite, the report condition is met.

Example:

When the space key is pressed, the sprite will move forward for 10 steps. If touching the edge, it will go to (0,0).


2. touching color ()?

If the sprite is touching the specified color, the report condition is met.

Example:

When the space key is pressed, the sprite will move forward for 10 steps. If touching color pink, it will go to (0,0).


3. color () is touching ()?

If the specified color is touching the other specified color, the report condition is met.

Example:

When the space key is pressed, the sprite will move forward for 10 steps. If color black touches color pink, it will go to (0,0).


4. distance to ()

Reports the distance from the sprite to the mouse-pointer or another specified sprite.

Example:

When the space key is pressed, the sprite will report its distance to the mouse-pointer.


5. ask () and wait

The sprite asks a specified question. An input box will pop up and you type in the value which will be stored in the answer block.

Example:

When the space key is pressed, the sprite will ask you the question "What's your name?". Then an input box will pop up for you to type in your name.


6. answer

Holds the most recent text input with the ask () and wait block. When nothing has been input, the value will hold nothing.

Example:

When the space key is pressed, the sprite will ask you the question "What's your name?". After you input your name, it will say "hi" to you.


7. key () pressed?

If the specified key is pressed, the report condition is met.

Example:

When the green flag is clicked, the sprite will say "Hello!". When you press the space key, it will say "Nice to meet you!".


8. mouse down?

If the mouse is down, the report condition is met.

Example:

When the green flag is clicked, if the mouse is down, the sprite will say "Yes"; otherwise, it says "No".


9. mouse x

Reports the x position of the mouse.

Example:

When the space key is pressed, the sprite will report the x position of the mouse.


10. mouse y

Reports the y position of the mouse.

Example:

When the space key is pressed, the sprite will report the y position of the mouse.


11. set drag mode ()?

Sets the drag mode to draggable or not draggable.

Example:

When the green flag is clicked, the drag mode will be set to "draggable".


12. loudness

Reports the loudness detected by the microphone.

Example:

When the space key is pressed, the sprite will report current loudness.


13. timer

Reports the value of the timer.

Example:

When the space key is pressed, the sprite will report current timer.


14. reset timer

Resets the timer.

Example:

When the space key is pressed, the timer will be reset.


15. () of ()

Reports the specified parameter of the stage or sprite. Parameters include: x position, y position, direction, costume #, costume name, size, volume, backdrop #, and backdrop name.

Example:

When the space key is pressed, the sprite will report the x position of "Jellyfish1".


16. current ()

Reports current year, month, date, day of week, hour, minute, or second.

Example:

When the space key is pressed, the sprite will report current year.


17. days since 2000

Reports the number of days since 2000.

Example:

When the space key is pressed, the sprite will report the number of days since 2000.


results matching ""

    No results matching ""