0 votes
func _on_Weapon_area_entered(hitbox_area: Area2D) -> void:

I'm printing true here.. this code is an area2D with its area_entered signal connected to itself. If it's collision shape is disabled then why am I even getting into this block?

in Engine by (38 points)

1 Answer

0 votes

adding the connection this way seems to solve it

connect('area_entered', self, '_on_Weapon_area_entered', [], CONNECT_DEFERRED)

any idea why CONNECT_DEFERRED fixes it?

by (38 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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.