Instance Property

speed

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

Declaration

@property(nonatomic) CGFloat speed;

Discussion

The default value is 1.0, which means that all actions run at their normal speed. If you set a different speed, time appears to run faster or slower for all actions executed on the node and its descendants. For example, if you set a speed value of 2.0, actions run twice as fast.

See Also

Running Actions

Getting Started with Actions

Create, configure, and run actions in SpriteKit.

- runAction:

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

- runAction:completion:

Adds an action to the list of actions executed by the node and schedules the argument block to be run upon completion of the action.

- runAction:withKey:

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

paused

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

- actionForKey:

Returns an action associated with a specific key.

- hasActions

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

- removeAllActions

Ends and removes all actions from the node.

- removeActionForKey:

Removes an action associated with a specific key.