Godot Version 4.5
Question:
Ok I feel like I’ve been asking way too many questions on here, but this one genuinely makes no sense. I’ve triple checked it, and made sure that the signals are connected and going where they need to go, but this simple code just hasn’t worked…
func _physics_process(_delta):
if in_enemy_range == true:
print(hp)
hp -= 5
print(hp)
func _on_hitbox_area_entered(_area: Area2D) -> void:
in_enemy_range = true
func _on_hitbox_area_exited(_area: Area2D) -> void:
in_enemy_range = false
Tbh this could totally be a simple mistake and I’m just passing by the solution…
edit: to clarify, nothing prints or does anything when I enter the area2D