Place an enemy

ReadingStart your game

A level needs someone to meet. Put an enemy on your ground, then open its script.

Place an enemy

  1. Press Open your game here, in the builder below.
  2. In the build tools, open the section called Objects Objects.
  3. Click Enemy to pick it up.
  4. Click on your ground, a few blocks from where the hero starts.

Press Play Play game to see it. It walks back and forth, as enemies do when nobody has given them a script of their own.

Open its script

  1. Press Pause Pause game if the game is playing.
  2. Press Select Select, under the map.
  3. Click your enemy. Its Object settings open.
  4. Go to the bottom of the settings and press Character scripting Character scripting.

A window opens with the enemy's script. It works like a code box, but it is bigger, and this script is saved in your game.

PartWhat it is for
The scriptBlocks Blocks and Code switch Code how it shows, just as in a code box.
Words you can useEvery word, in drawers. Click one to add it.
The notes boxTells you about any line the game can not read.

Try a script you know

Take out what is there and put in a rule from an earlier chapter, such as one that starts with when I see the {Hero}. Press Save Save, then Play Play game.

It is your enemy now, in your game, doing what your script says.

This makes a new game in your Lab and opens the builder right here. It is free.

Finish this section

When your enemy has a script, tick Finished reading at the bottom of the page. Then press Next.