Book Image

Stencyl Essentials

By : Richard Sneyd
Book Image

Stencyl Essentials

By: Richard Sneyd

Overview of this book

Table of Contents (20 chapters)
Stencyl Essentials
About the Author
About the Reviewers

Our first tileset

A tileset is a collection of reusable tiles that we can use to create complex and varied level geometry with marginal impact on file size and memory consumption, when compared with the equivalent impact that would be incurred were we to custom paint every detail of our levels without the use of such repeatable units. At 1X scale, the tiles in our tileset are 32 by 32 pixels; at 4X scale, they are 128 by 128 pixels. As with all of our graphical assets, we will be importing our tileset at 4X scale, allowing Stencyl to automatically generate all of the other scales.

Let's bring the tileset into our game. The process is not dissimilar to the steps we followed when importing the backgrounds earlier.

Go to the Dashboard, and select Tilesets from the list of RESOURCES in the left-hand pane. Click on the This game contains no Tilesets. Click here to create one button, and you'll be prompted to provide a name. Name it Green Tileset, and click on Create. You will see the following...