Contents

run(_:withKey:)

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

Declaration

func run(_ action: SKAction, withKey key: String)

Parameters

  • action:

    The action to perform.

  • key:

    A unique key used to identify the action.

Mentioned in

Discussion

This method is identical to run(_:), but the action is stored so that it can be retrieved later. If an action using the same key is already running, it is removed before the new action is added.

See Also

Running Actions