#Only horizontal collisions

6 messages · Page 1 of 1 (latest)

slim goblet
#

How to make only horizontal collisions of the enemy ?

I want to make a same effect as a in a game "Blasphemous", when a player jump at the enemy head, collision of a enemy is disabled, until player go out from a enemy area

I tried to do it, but problem that if enemy collision will be disabled, the enemy will fall through the ground

anyone have an idea how to do it correctly ?

slim goblet
#

Only horizontal collisions

echo yacht
#

Instead of using a single solid shape for collisions you could use a pair (front & back)?

slim goblet
echo yacht
#

Right, in which case you might have more luck with the one_way_collision property on CollisionShape2D / CollisionObject2D nodes.

slim goblet