How to Set Up Interior Tile Maps in Unity
Zenva
ACCESS the FULL COURSE here: https://academy.zenva.com/product/rpg-academy/?zva_src=youtube-rpg-academy
TRANSCRIPT
Hey guys, welcome back. In this lesson, we're going to set up our interior scene for the house we just created. Now this is gonna be an entirely different scene that we're going to load whenever we go into this door. So to do this, I'm just gonna duplicate the overworld scene, because I wanna make sure I keep all of my tile maps set up with all the layers and stuff. So I'm gonna just duplicate this scene. And I will call it, maybe this is Martin's House, just like that. And I wanna make sure also I put these in their own folders, so I'll have a folder for scenes, and then I'll just put these both in there. Shift-select both of those. Drag it into scenes. And for some reason, by doing that, our roads have updated to show that they're now behind the grass. They're both in the same sorting layer, so they're just kind of fighting for it, I guess. They're both on background.
So what I want to do is add a layer. We can have a layer just for roads. So we don't have a decoration layer, in fact. Let's add a decoration layer, and we'll add the roads onto the decoration layer. So if I go back in here and set roads to decoration, they're on top. But I wanna make sure that decoration does not go above characters or foreground, just like that. And now back into Martin's House. It doesn't matter that it's messed up in here, because we're not gonna have roads in here anyway, so I could just delete that from Martin's House if I wanted to, it's fine. So I'm gonna grab my eraser tool, and I'm just gonna erase everything on all these layers. And if I wanna erase a lot of things, one thing I can do is I can just make a big brush over here by clicking and dragging and then grabbing my eraser tool. And then I can just erase big chunks of the map, just like that, just from all the layers here. And then from the collision layer, background, and then get rid of that door.
So now I have an empty scene, but we also have our tile maps set up and ready to go. So let's create our interior scene here. I'm gonna grab my brush tool, and again, we're gonna work this with the black outside of the house, like you see in a lot of standard RPG games. You go into the house and you just see the interior of the house. So to do this, we're gonna have our little walls here. And let's make sure we're doing all of this on our collision layer, because the walls are gonna be something we collide with. So bottom right, and then we'll just draw over a bit here, and then a bit more here. And then the bottom left, same as the exterior house. And then for the side walls, we'll just use these little walls right here. I'll just drag up. Now you could also set up rule maps, rule tiles, ... https://www.youtube.com/watch?v=p-6AfJZJQEU
25596735 Bytes