Facing directions

Monsters Left/Right

Obj: monsterLR

Change the monsterLR object's sprite to "monster1_nice"

This monster sprite has these subimages.

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...
  2. Change Sprite: set to your monster sprite, subimage "3", speed "0"
  3. Else
  4. Change Sprite: set to your monster sprite, subimage "2", speed "0"

Test it out - it should move/change like this...

Monsters: up/Down

Obj: monsterUD

First change the sprite for the object to "monster2_nice"...

Add a new event End Step with the following actions:

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

Test it out - it should move/change like this...