sprite-kit Create and Run a Simple SKAction


Example

A very simple example would be to fade out an SKSpriteNode.

In Swift:

let node = SKSpriteNode(imageNamed: "image")
let action = SKAction.fadeOutWithDuration(1.0)
node.runAction(action)