How to Set Up Tile Maps in Unity
Zenva
ACCESS the FULL COURSE here: https://academy.zenva.com/product/rpg-academy/?zva_src=youtube-rpg-academy
Hey guys, my name is Austin Gregory and in this course I'm going to teach you how to create a little RPG town using the Unity tile tools as well as some in NPCs and a cool little dialogue system. So let's get started by creating a new project. We're going to in the Unity hub here and I want to call it RPG town. And I want to use the latest version available to me, which is 2017.2. And it's going to be in 2D and I do not need analytics enabled. So Create Project.
So in this first lesson we're going to focus on setting up our tile maps and getting some tiles on the screen, so we have a little town for our character to run around in and some houses to place our NPCs in so we can go talk to him and have a nice chat. So I want to create a new folder and I want to call this one Sprites. Now it's going to keep all of my raw Sprites in this folder. And also want to have a folder is going to be called Tiles. That's where we're going to keep our actual tile objects in. Now in Unity if you're not familiar they have a whole new tile map system with a whole new tile system, it came out in the last couple of versions at least. And we are going to be using those to lay out our world.
So included with the project you will have a sprite sheet from Kenney we're just going to drag this into our project and add it into our Sprites folder. Now with the Sprite sheet selected I want to make sure that we're on Sprite 2D in UI and I want to go down to multiple as we have multiple sprites within this one sheet and I want to go to sprite editor and click apply for those changes. And what I want to do is I want to slice this up into individual Sprites. Now I know for mine, they are set at 64 by 64 each. So if I go to automatic, it'll do it. It'll make it two tile on the windows and stuff because they're smaller than the actual full size tiles. So I want to do it by size. Now if you know the number of columns and rows you have you can do it that way but I want to sell it to pixel size 64 by 64 and just click slice. It's going to slice this up into individuals Sprites for me and click apply. Also to keep it on one tile equals one unit, what I want to do is make sure that the pixel per unit is set to 64. That way we have 64 pixels in a single unit so each tile will be one unit or in this case each Sprite will be one unit. Now if we look here we have all these individual Sprites which is exactly what we want. Now these are just Sprites, these are not tiles. We have to create a tile map that we can use from these sprites. Now want I to do is I want to go up to the window and I want to go down and find tile palette. Now this is the tour we're going to be using whenever actual ... https://www.youtube.com/watch?v=PXlShfclzJw
56576891 Bytes