0 votes

Hi all, i'm trying to make my 2.5d character to punch, if the hitbox area(3d) is not animated(it's always enabled and at its size and position) it gets detected by the hurtbox area(that doesn't move or change), but if i animate the hitbox by disabling/enabling it or changing its extents and position it doesn't get detected by the other hurtbox area.
I tried various Area, CollisionShape and AnimationPlayer settings but nothing.
Suggestions?

asked Dec 23, 2019 in Engine by 2plus2makes5 (153 points)

1 Answer

0 votes

In case anyone is interested after many tries i have found a solution, in order to get the signal of onXarea_entered to work correctly the colliding area must translate or resize, it's like if Godot considers changed only the Areas that have translated or resized, instead i was translating and changing the size of the CollisionShape while keeping the Area unchanged.

answered Dec 26, 2019 by 2plus2makes5 (153 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.