Im new, like REALLY new to godot and .get_global_position isn't working no matter what I do and its driving me crazy because im trying to get the enemy to look at the player by subtracting the enemys location by the players locatation but its keeps saying something about a "null instance" please help ASAP im going insane
.get_global_position
Asked Answered
Levant Also I'm in godot 4.1 and i did use the @onready var player = $Player
Levant Post the relevant code snippet and the exact error message.
Hardily sorry I forgot to take this down i figured it out and fixed it i has everything in one scene and i didnt use .get_parent() nodes
© 2022 - 2025 — McMap. All rights reserved.