答案 0 :(得分:1)
尝试留下原始精灵的x个副本,但是启动SKAction将alpha淡化为0,并且也可以将大小缩放为0。创建一个NSTimer以在一两秒后删除旧的精灵。将此代码放在您移动主要精灵的位置,而这些精灵就是你的尾巴
//copy the sprite that is moving around
let newSprite = theMovingNode.copy()
//fade and shrink our new sprite
newSprite.runAction(SKAction.FadeAlphaTo(0,duration:2.0))
newSprite.runAction(SKAction.ScaleTo(0,duration:2.0))
// create a timer to remove this sprite in 2 seconds
let timer = NSTimer.scheduledTimerWithTimeInterval(2, target: self, selector: Selector("removeTailSprite:"), userInfo: newSprite, repeats: false)