Type Method

animateWithWarps:times:

Creates an action to distort a node through a sequence of SKWarpGeometry objects.

Declaration

+ (SKAction *)animateWithWarps:(NSArray<SKWarpGeometry *> *)warps times:(NSArray<NSNumber *> *)times;

Parameters

warps

The sequence of warps to apply to the node.

times

The times at which each warp distortion in the sequence should complete.

Return Value

A new action object.

Discussion

The numberOfColumns and numberOfRows in each geometry in the sequence should match.

See Also

Animate the Warping of a Node

+ animateWithWarps:times:restore:

Creates an action to distort a node through a sequence of SKWarpGeometry objects.

+ warpTo:duration:

Creates an action to distort a node based using an SKWarpGeometry object.