C++ SCHX ยท rev 4
Sensing blocks ยท Beginner

Sensing blocks

Read player and world information. Sensing turns things such as the mouse, touching, distance and timers into values that other blocks can use.

12 minreading time
Beginnerdifficulty
MODU docssource
SCHX nativeruntime
SCHX / FEATURE LAYER

What Sensing is for

Sensing turns things such as the mouse, touching, distance and timers into values that other blocks can use.

The built-in Sensing category starts with 6 core block shapes and is expanded by the larger generated catalog, so you can learn a small vocabulary before exploring specialized variants.

SCHX / FEATURE LAYER

Core blocks you will see

These names come from the current RC Blocks Studio catalog. Start with the first two or three and ignore the rest until your project needs them.

blocksask question and save to variable
save mouse x/y to variables
save distance to sprite in variable
save touching sprite to variable
save timer to variable
reset timer
SCHX / FEATURE LAYER

Try this tiny recipe

Build the smallest possible experiment so you can see what this category changes.

1

Store the timer or mouse position in variables.

2

Show a variable monitor so you can see the changing value.

3

Use that value in a later decision.

SCHX / FEATURE LAYER

How it becomes a real game

When the project is materialized, supported Sensing opcodes are compiled into the generated browser runtime rather than remaining visual-only editor decorations.

That means the same block idea can affect the full RC project when you Save and Run project.

SCHX / FEATURE LAYER

Related guides