I’m making an enemy for my game, and I’m trying to add some code that runs when the player collides with it, but its not showing up!
extends CharacterBody2D
@onready var chip: CharacterBody2D = $"../Chip"
func _ready() -> void:
pass # Replace with function body.
func _physics_process(delta: float) -> void:
if not is_on_floor():
velocity.y = 7000
func _on_area_2d_area_entered(area: Area2D) -> void:
#This line is broken for some reason. The area2d isnt firing.
print("i exist")