HelloFangaming / HelloMarioEngine

A feature packed and fully commented Super Mario engine for GameMaker: Studio 1.4.

Home Page:http://hellofangaming.github.io/HelloMarioEngine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Block collision

Dynamotivation opened this issue · comments

If you have a high enough hspeed and the correct angle it is possible to hit a block/brick by falling into the trigger from the side. To fix this you can add the following to the "obj_blockparent" Step event under line 4

and obj_mario.vspeed <= 0

This will make the event check if Mario is moving up or if he has already stopped because of collision. It will not return true if Mario falls and fix the issue that way. Alternatively you could also check with "and not".

and !obj_mario.vspeed > 0

Fixed in v6.2.1