#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)
damn
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.
finnally
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"?
Which area_2d is hooked up to your function that calls "handle enemy_collision"?
the players area2d
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?