All Questions

Community

lucientherat

Reworked code has a typo

func _on_StompDetector_body_entered(body: Node) -> void:
	var physics_body: = body as PhysicsBody2D
	if physics_body.global_position.y < get_node("StompDetector").global_position.y:
		get_node("CollisionShape2D").disabled = true
		queue_free()

if physics_body.global_position.y ### < ### get_node("StompDetector").global_position.y:


the < should be a >