You can move the Sprite
to the position of the Position2D
by setting its transform to that of the Position2D
.
$Sprite.transform = $Position2D.transform
Alternatively, you could make the Sprite
a child of the Position2D
. That would naturally place the Sprite
at the same position as the Position2D
(assuming the sprite's transform is 0,0
).
You can rotate the sprite using any of:
$Sprite.rotation_degrees = 90 # degrees
$Sprite.rotation = PI/2 # radians
$Sprite.rotate(PI/2) #radians