Instance Property

duration

The duration required to complete an action.

Declaration

@property(nonatomic) NSTimeInterval duration;

Discussion

This is the expected duration of an action’s animation. The actual time an action takes to complete is modified by the speed property of the action and the speed property of the node on which it executes.

See Also

Controlling Action Timing

Configuring Action Timing

Time an action in a scene, by adding or modifying timing properties, or cancel an action.

timingMode

A setting that controls the speed curve of an animation.

SKActionTimingMode

The modes that an action can use to adjust the apparent timing of the action.

timingFunction

A block used to customize the timing function.

SKActionTimingFunction

The signature for the custom timing block.

speed

A speed factor that modifies how fast an action runs.