How to set the position of the KinematicBody2d(Player) on Node2D??

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By nixon890

extends Node2D

func _ready():
var p = preload(“res://Scenes/Player.tscn”)
player = p.instance()
add_child(player)

:bust_in_silhouette: Reply From: mdubaisi

func _ready():
player.global_position = Vector2(position.x, position.y)