C++ SCHX ยท rev 4
RC Blocks Studio guide ยท Beginner

Sprites: the actors in your game

A sprite is an actor with a position, direction, size, visibility and scripts. Different sprites can run different event stacks at the same time.

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

What a sprite is

A sprite is an actor with a position, direction, size, visibility and scripts. Different sprites can run different event stacks at the same time.

SCHX / FEATURE LAYER

Select before you script

The selected sprite determines which scripts and properties you are editing. Check the sprite panel before changing movement or appearance.

SCHX / FEATURE LAYER

Common sprite values

x moves left/right, y moves down/up in the Stage coordinate system, direction controls rotation, and size changes scale.

blocksset x to
set y to
point in direction
set size percent
SCHX / FEATURE LAYER

Multiple sprites

Games become easier to organize when the player, enemies, collectibles and UI-like actors are separate sprites.

  • Give sprites clear names.
  • Use broadcast messages for loose coordination.
  • Use touching/distance sensing for interaction.
SCHX / FEATURE LAYER

Related guides