Sınıf kartımın SKSpriteNode alt sınıfı olan nesneleriyle karıştırıldım. Bir kullanıcı onları taşıdığında bu nesnelere nasıl erişebilirim. Şimdiye kadar sadece touchEnded işlevini geçersiz kılan SKNode nesnelerine erişebiliyorum.Taşınırken SKSpriteNode alt sınıfının nesnelerine nasıl erişilir (Swift)
override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) {
let touch : UITouch = touches.first as UITouch!
let touchLocation = touch.locationInNode(self)
touchedNode = self.nodeAtPoint(touchLocation)
touchedNode.position = CGPoint(x: size.width * 0.5, y: size.height * 0.5)
touchedNode.zPosition = 0
}
Ben touchedNode SKNode sınıfı (benim Kart nesne sınıfı) Ben bunu anlamaya muktedir değilim bir amacı kullanıcı hareketli ama bu durumda hangi nesnesine bilmemiz gerekir.