Initializer

init(named:)

Creates an action of the given name from an action file.

Declaration

init?(named name: String)

Parameters

name

The name of the action.

Return Value

A new action object.

See Also

Creating Custom Actions

init?(named: String, duration: TimeInterval)

Creates an action of the given name from an action file with a new duration.

init?(named: String, from: URL)

Creates an action of the given name from an action file.

init?(named: String, from: URL, duration: TimeInterval)

Creates an action of the given name from an action file with a new duration.

class func perform(Selector, onTarget: Any) -> SKAction

Creates an action that calls a method on an object.

class func run(() -> Void) -> SKAction

Creates an action that executes a block.

class func run(() -> Void, queue: DispatchQueue) -> SKAction

Creates an action that executes a block on a specific dispatch queue.