move(toParent:)
Moves the node to a new parent node in the scene.
Declaration
func move(toParent parent: SKNode)Parameters
- parent:
An Sknode object to move the receiver to. This node must be in the same scene as the node’s current parent.
Discussion
The node maintains its current position in scene coordinates.