We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Changing the parent is now possible by simply assigning a new parent. A function to preserve the current transformation is available as well.
Changing the parent is currently not possible. The parent component will give both an alternative to add(), and a way to change the parent afterwards.
const ball = add([ sprite(), name("ball"), parent(leftFoot) ]) // Detach the ball from the foot and attach it to the root when kicked ball.parent = null
Caveats: