BlocosIA Wiki Editor

Sensing

Boolean

touching [ ▾ ] ?

True when the sprite touches the mouse, the edge, a barrier or another sprite.

Boolean

touching [ ▾ ] [below me (standing on it)] ?

True when touching something on a specific side (top, bottom, left, right).

Reporter

side where I touch [ ▾ ]

Tells which side the sprite is touching something on.

Reporter

distance to [ ▾ ]

The distance in steps to the mouse or another sprite.

Stack

ask ( ) and wait

Asks a question and waits for typing. What was typed goes to "answer".

Reporter

answer

The text of the last typed answer.

Boolean

key [space] pressed?

True while the key is held down. Great inside a "forever".

Boolean

mouse down?

True while the mouse button is held down.

Reporter

mouse x

The mouse x position on the stage.

Reporter

mouse y

The mouse y position on the stage.

Stack

set drag mode [draggable]

Lets people drag (or not) the sprite with the mouse while running.

Reporter

timer

Seconds since the green flag (or since "reset timer").

Stack

reset timer

Resets the timer to zero.

Reporter

[x position] of [ ▾ ]

Reads another sprite's position, direction, costume or size.

Reporter

current [year]

The current date or time.

Reporter

username

The name of the signed-in user.

Reporter

stage width

The stage width in steps (changes with 4:3, 16:9 or 9:16).

Reporter

stage height

The stage height in steps.