BlocosIA Wiki Editor

Arrow-key control

Medium · Make a little game: the arrow keys move the sprite.

Interactive tutorial: the editor checks each step by itself.

  1. Choose a sprite and, in Events, drag "when space key pressed".
  2. Click the block's little arrow and choose "right arrow".
  3. In Motion, snap "change x by 10" below it.
  4. Click the stage and press the right arrow key!
  5. Challenge: make another script for the left arrow with "change x by -10". (challenge)

Open in the editor