Been trying to figure out how to change the parent of a sprite.
After some playing around today I think I've got it.
If you use addChild on a sprite that's already a child of another sprite, does it then cease being a child of the former sprite and become a child of the one you just specified?
Hope that didn't sound like jibberish! :-)
EDIT: Yes, this is in the reference.
"Sprites can have only one parent. Therefore if you add a child object that already has a different sprite as a parent, the sprite is removed from the child list of the other sprite and then added to this sprite."
Comments