A node used to render a 2D array of textured sprites.
- iOS 10.0+
- macOS 10.12+
- tvOS 10.0+
- watchOS 3.0+
You supply an
SKTile a tile set which defines the tile definitions it can render. You can fill each tile in the tile map with the
fill(with:) method and explicitly set the definitions for individual tiles with the
You can layer individual tile maps with different blend modes and, since they are SpriteKit nodes, they can be controlled by actions and physics allowing, for example, parallax scrolling. The rendered tile map can be post processed with an
SKShader to add effects such as motion blur or atmospheric perspective.
SKTile can only render tile definitions that exist within the
SKTile you have provided it.