Hello, I have a problem with a path node it saying that the path is null
I have a script called Enemy and I'm trying to get Players node position but it's not working
extends KinematicBody2D
func _physics_process(delta):
print(get_node("root/MainScene/Player").position())
I also tried printing out the node path without the position it says [Object:null]