Godot Version
4.4.dev7.official
Question
Im still new here, trying to code a pong-like breakout game as a way to learn the engine, but i cannot get the ball to get deleted when touching the kill zone. Here’s what I have in the Kill zone script:
extends Area2D
func _on_body_entered(body: Node2D) -> void:
print("hello")
if body is RigidBody2D:
body.queue_free() # Deletes the RigidBody2D node
The print hello doesnt get called , and neither does the queue_free. the ball is definitely touching the area 2d:
Please help if possible.