Hey I am having trouble with getting the global position of another node but when I type in .global_position it is not found as an option, but have been stumped for a while on this one I was hoping I could get some help on this one.
If needed here is my code:
extends Area2D
const playerpath = preload('res://player.tscn')
@export var move_speed : float = 150.0
func _physics_process(delta):
var player = get_node('player')
var player_global_position = player.global_position
global_position += (player_global_position - global_position) / 50
look_at(player_global_position)