#anyone knows how to fix the stomping mechanic? everything seems fine but it's just not detecting the

1 messages · Page 1 of 1 (latest)

loud kettle
loud kettle
#

damn

uneven snow
#

If you could also provide a short clip of the current interaction of things not behaving as expected, that could also be useful to resolving the issue.

loud kettle
#

finnally

uneven snow
#

And while you're in there, if you could print the "angle_of_collision" that would be useful too.

#

Actually

#

I just noticed something

#

In angle_of_collision, can you change both player and enemy "position" to "global_position"?

uneven snow
#

Which area_2d is hooked up to your function that calls "handle enemy_collision"?

uneven snow
#

Throw a print inside your _on_area_2d_area_entered() that says ("Area entered: ", area)

#

Put it above the enemy check

#

Did you update the collision layer and mask of the area2D attached to the player? Or just the characterbody2d?

loud kettle
#

the print works now

#

the enemies how ever are not getting stomped

#

OMG

#

@uneven snow

#

THX

#

big victory!

#

area2d layer problem....xd