Open your game file by going to File > Recent Files … to open your game again quickly.

Make sure you see these extra folders. If not, go to File > Advanced Mode

Monster ALL Moving

Go into the monster ALL object, and add a Create event:

  • Move Fixed – in all 4 directions (up + down + left + right),
    speed “4” (needs to be slower, it’s hard to avoid this one)

Add an event Collision with wall and add the following action:

  • Move Free: direction = direction+90, speed “4”

Duplicate the action 2x (CTRL+C, then CTRL+V twice)…

Add the Check Empty action with x = hspeed, y = vspeed, objects (default, only solid), relative

Duplicate the Check Empty action.

Change the order of the Check Empty actions so it’s like this…

Then add the Exit Event action after each Check Empty action like this…

Double-click on the 2nd & 3rd Move Free actions and change the other ones to direction+180 and direction-90; speed should not change, stay 4.

Click on the Show Information button, check the settings. To get out of this view, click on the green checkmark at the top left…

Room: Testing #3

Test it out, making sure they creep along the walls like this…

Losing Lives

Go into your person object …

…and duplicate either of the collision with monster events.

Set it to Collision with monster ALL (you don’t have to change anything).

Test it out, make sure the monsters kill you.

Facing Directions

Go back into the monster ALL object, and change the sprite to the “monster3_nice”.

Start by adding the End Step event. Add the Test Variable action (if hspeed smaller than 0)

Copy the action and paste 3x. Go into the copies and change to you have 2 x “hspeed” and 2 x “vspeed”, alternating “smaller” and “larger” as shown below…

Add a Change Sprite action; set the sprite to monster3_nice and subimage and speed to “0”…

Duplicate it 3x… then move them so there is one after each Test Variable action like this…

Go into the Change Sprite as follows.. set the subimage values as follows:

  1. If hspeed larger than 0 (going left), then subimage “3”
  2. If hspeed larger than 0 (goingright), then subimage “2”
  3. If vspeed smaller than 0 (going up), then subimage “1”
  4. If vspeed larger than 0 (going down), then subimage “0”

Check that you have the actions in the right order. Click on Show Information button… Make sure the order of subimages is 3, 2, 1, 0. To go back to normal view, click on the green checkmark.

Test your game

Make sure they all face the direction they’re moving like this.

Keep it open in the testing level to get checked off.

Playing Level

Continue the game – hit ‘N‘ key to go to the playing level with these monsters.

You must play this game until you’ve collected all the diamonds without losing all your lives.