GameDevHQ Crash Course #31 TileMaps
Tilemaps are an easy way of using a small selection of assets to create multiple levels and keep a coherent theme through them.
First we are going to need a set of sprites that will form our tilemap.
Once you get your sprite sheet cut properly in your hierarchy add a 2D tilemap for your base ground sprites, then with that made if you do not have the Tile Pallet open in unity, you can open it through window->2D->Tilemap Pallet.
with that open, you can select all the sprites for your ground and drag them into the tile pallet.
With this we can now paint these into our scene.
With one layer, you can make yourself a bit of a level, a bit more work and you can make a bunch of platforms or extend your level out a bit more.
With a bit of time and more sprites you can have your level come together.
For this you have some layers behind your ground layer and some in front to give it more life.
Next to add a bit more life to the scene we are going to add some animating tiles.
Unity by default does not have animated tiles yet. So we are going to have to google their documentation for this one. You are looking for (https://github.com/Unity-Technologies/2d-extras) Now they have made this obsolete as they want to have all their modules done through the package manager, however the animated tiles are not there yet. So you want to select the 2017 branch from the github and download that, Next you are going to be looking for the animated tiles scripts, it is buried a few folders deep in there, but once you find that add that to your unity project, This will add an extra option when you choose to create in the project menu, We will be using three of these as our waterfall has a left a right and a centre part to it. Now for the tedious part of this, our waterfall animation has 30 frames of animation, you have to manually add all thirty frames individually to this.
Once we finished animating the waterfall parts, it is time to add it to our scene.
Now we have something that is starting to look good.