Instance Method

removeAction(forKey:)

Removes an action associated with a specific key.

Declaration

func removeAction(forKey key: String)

Parameters

key

A string that uniquely identifies an action.

Discussion

If an action is found that matches the key, it is removed from the node.

See Also

Running Actions

func run(SKAction)

Adds an action to the list of actions executed by the node.

func run(SKAction, completion: () -> Void)

Adds an action to the list of actions executed by the node.

func run(SKAction, withKey: String)

Adds an identifiable action to the list of actions executed by the node.

func action(forKey: String)

Returns an action associated with a specific key.

func hasActions()

Returns a Boolean value that indicates whether the node is executing actions.

func removeAllActions()

Ends and removes all actions from the node.

var speed: CGFloat

A speed modifier applied to all actions executed by a node and its descendants.

var isPaused: Bool

A Boolean value that determines whether actions on the node and its descendants are processed.