Godot Version
Godot 4.6.2
Question
I’ve been making a mock undertale-ly fight to get used to godot. I have an attack sprite that will lock on to the player, then after a small delay, shoot forward before locking on again. For some reason, i’m not able to figure out why it’s not locking on, and i havent found any forum posts or tutorials that go over my issue.
extends Sprite2D
@export var player: Node2D
func _process(_delta):
if player:
look_at(player.global_position)