Initializer

init(named:from:)

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

Declaration

init?(named name: String, from url: URL)

Parameters

name

The name of the action.

url

The URL of the file containing the action.

Return Value

A new action object.

See Also

Creating Custom Actions

init?(named: String)

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

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, 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.