Creates an action that animates changes to a sprite’s normal texture.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
An array of textures to use.
The amount of time that each texture is displayed.
A new action object.
This action can only be executed by an
SKSprite object. When the action executes, the sprite’s
normal property animates through the array of textures. The sprite’s
normal property is changed to the next texture in the array. The action then pauses for the specified time before continuing. The action continues until it has finished animating through all of the textures in the array. The total duration of the action is the number of textures multiplied by the frame interval.
This action is reversible; the resulting action animates through the same textures from last to first.