Does anybody know how to access an entity x y coordinate inside a world class.Those coordinate are changing. I want to make a light that follows the player.
the following does not work and im getting this error: col: 27 Error: Access of possibly undefined property x through a reference with static type Class.
the getInstance() method does not function either since i am allready in the world class
override public function update():void {
playerLight.x = Player.x
playerLight.y = Player.y;
super.update();
}