---
title: "init(textures:size:timePerFrame:)"
framework: spritekit
role: symbol
role_heading: Initializer
path: "spritekit/sktiledefinition/init(textures:size:timeperframe:)"
---

# init(textures:size:timePerFrame:)

Initializes a new tile definition with an array of textures for animation.

## Declaration

```swift
init(textures: [SKTexture], size: CGSize, timePerFrame: CGFloat)
```

## Parameters

- `textures`: An array of textures to reference for the definition’s size and content.
- `size`: The size of the tile in points.
- `timePerFrame`: The duration, in seconds, that each texture is displayed.

## Return Value

Return Value A new tile definition.

## See Also

### Creating an Animated Tile

- [init(textures:normalTextures:size:timePerFrame:)](spritekit/sktiledefinition/init(textures:normaltextures:size:timeperframe:).md)
