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

Variables blocks

Remember changing values. Variables are named boxes for values such as score, lives, speed or a player name.

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

What Variables is for

Variables are named boxes for values such as score, lives, speed or a player name.

The built-in Variables category starts with 4 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.

blocksset variable to value
change variable by
show variable monitor
hide variable monitor
SCHX / FEATURE LAYER

Try this tiny recipe

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

1

Create a score variable.

2

Set it to 0 when the game starts.

3

Change it when something good happens.

SCHX / FEATURE LAYER

How it becomes a real game

When the project is materialized, supported Variables 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