I'm trying to make the enemy keep shooting the projectiles when the player still in the area 2d collision shape, but they shoot only one time, and i need to enter again to they shoot the player, how do i make they keep shooting while the player stay in the area?
func onRangebodyentered(body):
if "player" in body.name and fireCooldown.is_stopped():
fireCooldown.start(cooldown)
fire()