Monsters ALL

Monster Creeping along walls

Obj: monsterALL

Create the monster ALL object using the red "monster 3" sprite.

  • Create
    • 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; then add the following actions...

  • Move Free: direction = direction+90, speed "4" 
  • Check Empty: x = hspeed, y = vspeed, objects (default, only solid), relative

  • Exit this event
  • Move Free: direction = direction+180, speed "4"
  • Check Empty (same as previous)
  • Exit event
  • Move Free: direction = direction-90, speed "4"

Add 2 of these monsters in your testing room

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

Losing lives

Go into your person object

Duplicate Collision with monster LR .... 

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

Test it out, have your game playing and make sure monsters kill you.