Type Method

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.

See Also

Animate the Warping of a Node

class func animate(withWarps: [SKWarpGeometry], times: [NSNumber]) -> SKAction?

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

class func warp(to: SKWarpGeometry, duration: TimeInterval) -> SKAction?

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