Im trying to make a kill zone but it just doesn’t work for some reason, Im relatively new to code so that might be the reason
my code looks like this:
xtends Area2D
@onready var timer: Timer = $Timer
func _on_body_shape_entered(body_rid: RID, body: Node2D, body_shape_index: int, local_shape_index: int) → void:
print(“You Died”)
timer.start()
func _on_timer_timeout() → void:
get_tree().reload_current_scene()
Is there a problem with the scene tree? or something?