---
title: "move(toParent:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/sknode/move(toparent:)"
---

# move(toParent:)

Moves the node to a new parent node in the scene.

## Declaration

```swift
func move(toParent parent: SKNode)
```

## Parameters

- `parent`: An doc://com.apple.spritekit/documentation/SpriteKit/SKNode object to move the receiver to. This node must be in the same scene as the node’s current parent.

## Discussion

Discussion The node maintains its current position in scene coordinates.

## See Also

### Modifying the Node Tree

- [Accessing and Modifying the Node Tree](spritekit/accessing-and-modifying-the-node-tree.md)
- [addChild(_:)](spritekit/sknode/addchild(_:).md)
- [insertChild(_:at:)](spritekit/sknode/insertchild(_:at:).md)
- [isEqual(to:)](spritekit/sknode/isequal(to:).md)
- [removeFromParent()](spritekit/sknode/removefromparent().md)
- [removeAllChildren()](spritekit/sknode/removeallchildren().md)
- [removeChildren(in:)](spritekit/sknode/removechildren(in:).md)
- [inParentHierarchy(_:)](spritekit/sknode/inparenthierarchy(_:).md)
