1
在手指的場景中,您可以移動物體。但是,如果你只是加快手指在屏幕上的移動 - 物體仍然保持原位。是否有可能加快其運動的速度?時間已被設置爲0如何加速對象的移動?
override func touchesMoved(touches: Set<UITouch>, withEvent event: UIEvent?) {
let touch = touches.first
let touchLocation = touch!.locationInNode(self)
let node = self.nodeAtPoint(touchLocation)
if (node.name == "circle") {
let moveAction = SKAction.moveTo(touchLocation, duration: 0)
figureUser.runAction(moveAction)
}
}