animate(withWarps:times:restore:)
Creates an action to distort a node through a sequence of Skwarpgeometry objects.
Declaration
class func animate(withWarps warps: [SKWarpGeometry], times: [NSNumber], restore: Bool) -> SKAction?Parameters
- warps:
The sequence of warps to apply to the node.
- times:
The times at which each warp distortion in the sequence should complete.
- restore:
A Boolean specifying whether to restore the original node’s warpGeometry from before the action.
Return Value
A new action object.
Discussion
The numberOfColumns and numberOfRows in each geometry in the sequence should match.