---
title: "animate(withWarps:times:restore:)"
framework: spritekit
role: symbol
role_heading: Type Method
path: "spritekit/skaction/animate(withwarps:times:restore:)"
---

# animate(withWarps:times:restore:)

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

## Declaration

```swift
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

Return Value A new action object.

## Discussion

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

## See Also

### Animate the Warping of a Node

- [animate(withWarps:times:)](spritekit/skaction/animate(withwarps:times:).md)
- [warp(to:duration:)](spritekit/skaction/warp(to:duration:).md)
