Need help with sword stuff hurtbox/hitbox plz

Godot 4.4
So the player moves forward when swinging their sword and that toggles on and off an area2d, which is the sword. The enemy does detect when they’re hit, but only sometimes. Usually when the player is too close it won’t work, but when the sword hitbox moves into the enemy’s, then it will.
Im putting the zip in a Google Drive link.

Don’t toggle the Area2D on/off. Toggle the child CollisionShape2D’s disabled state on/off.

my gosh i never thought of that

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.