I have the following code to move SKSpriteNode .
let moveDown = SKAction.moveBy(CGVectorMake(0, -120), duration: 1) let moveUp = SKAction.moveBy(CGVectorMake(0, +120), duration: 1) let moveSequence = SKAction.sequence([moveDown, moveUp]) square.runAction(SKAction.repeatActionForever(moveSequence))
This moves SKSpriteNode up and down forever. Is there any way I could pause this SKAction ? So will SKSpriteNode freeze in its current position, and then, when I decide, continue moving?
I only want to pause the movement of this SKSpriteNode . I do not want to pause SKScene . Just the movement of this 1 SKSpriteNode
source share