So it's a very simple question: I have an SKSpriteNode
fullPiece
and when it hits a point I want to copy it and transfer the copy to a different parent. So what i'm doing is this
var tempPiece = fullPiece
fullPiece.removeFromParent()
collectionOfParts.addChild(tempPiece)
Im copying the object, then removing the old one, then adding the copy. However, later on I remove the fullPiece again and the copy, or whatever is there disappears. How do I make this work properly?