Block Moving

Go into the block object. Add the Collision with person event:

  • Check Empty: objects = “All”, relative
    x = 4*other.hspeed
    y = 4*other.vspeed
  • Jump to Position: relative
    x = 4*other.hspeed
    y = 4*other.vspeed

Person

Go into your person object and add a Collision with block event – add the Comment “do nothing” (this just helps make it work, prevents some other action from automatically happening).

Testing Room

Test it out – does the person push them in all directions?

Block goes into hole

Go into the hole object. Add the event Collision with block with the following actions:

  • Destroy instance (self = hole)
  • Destroy instance (other = block )

Person pushing block

Go into your block object. Copy the Jump to Position action and paste it below.

Now add Else and then Start and End blocks around it.

Inside the bottom section, add

  • Check Object: object “hole”, relative
    x = 4*other.hspeed
    y = 4*other.vspeed

So the Collision with Person event should look like this…

Testing Room

Go into the testing room and add some walls & holes in the testing room – one really close to the person so we can quickly check that the person can’t go through it. The other that we’ll push a block into.

Test it out:

  • your person should not be able to go through them, and
  • if the block collides, the hole should disappear.

Get the functionality checked off – keep it open in play mode.

Playing Level

Go to the next room and play it.

Keep it open, showing you’ve completed it with the “room done” pop-up window.

Strategy tips:

Get rid of the holes on the edges, not the middle. Also collect the diamonds inside before approaching the bottom.

Get rid of the outside holes again and the diamonds just below…

Get rid of the diamonds and push the last 2 blocks to block the monsters like this…