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

Monsters Moving

monster LR

Go into the object monster LR and add the Create event…

  • Move Fixed – left and right, speed “6” (a bit slower than our player)

Add the event Collision with wall with the action Reverse Horizontal

monster UD

Go into the monsterUD object. Add the Create event

  • Move Fixed – up and down, speed “6”

Add a Collision with wall event – add the action Reverse Vertical

Testing

Test it out. Do your monsters move properly?

Losing Lives

Double-click on your person object (and the following)…

  • Collision with monsterLR
    • Sleep (this pauses the game for 1 second)
    • Set Lives – lose a life (make sure it’s relative or else you hit one monster and the game will be over, you’ll have less than 0 lives!)
    • Jump to Start

Duplicate the Collision with Monster LR for the Collision with monster UD

Your person should look like this…

Test your game – if you run into a monster, do you “die” (pause/sound, person where started)?
If yes, continue.

Facing Directions

monster LR

Go back into monsterLR object and change the sprite to “monster1_nice”

Now we will have the monster facing whatever direction it’s moving in. Add the End Step event…… what is the monster doing just after it hits a wall?

  1. Test Variable: if hspeed (horizontal speed) is smaller than 0 (if going left), then…
  1. Change Sprite: left-facing monster sprite, subimage “3”, speed “0”
  1. Else
  1. Change Sprite: right-facing monster sprite, subimage “2”, speed “0”

So your End Step event should look like this…

Test it out – make sure the monsters move left/right without spinning like this…

monster UD

Go into the monster UD object and change the sprite for the object to “monster2_nice”…

Add a new event End Step and the following actions:

  1. Test Variable: is vspeed (vertical speed) smaller than 0, going up?
  1. Change Sprite: “monster2” sprite, change subimage to “1” (going up)
  1. Else
  2. Change Sprite: “monster2” sprite; change subimage to “0” (going down)

Your monster UD‘s End Step event should look like this…

Test your game; make sure the monster faces up/down without spinning.

Get it Checked Off

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

Playing Level

Continue the game – hit ‘N‘ key to go to the next room with the monsters…

Hit the ‘S‘ key to restart the level with 5 lives.

Play the level until you are able to complete the level it; when you’ve collected all the diamonds, you should have a score of 100 (20 diamonds x 5 pts).

Keep the pop-up window open to get checked off.