Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | hotmailking |
I’m trying to access my player’s (KinematicBody2D) x and y position within its attached script, how can I do that?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | hotmailking |
I’m trying to access my player’s (KinematicBody2D) x and y position within its attached script, how can I do that?
Reply From: | kidscancode |
You can get the coordinates of any Node2D derived object via its position
property.