GameMaker Studio 2.3 - How to Create and Use Tile Sets + Auto Tiling

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
greetings and welcome my name is aaron craig with let's learn this together stick around to the end of the video for details on how you can easily win my beginner games course tile sets make up a huge part of every game you create so when you have one like i've got here from maniseed and salil the shaper who created it you can you can find them on patreon as well you download the tileset and bring it in just like a sprite so i'm just going to grab the first one we've got here and grab it into the tile set folder now when you bring it in it is a sprite so i'm just going to rename it spr gentle forest and then i'm going to actually make a tile set out of this sprite so i'm going to right click and create tile set and i use ts as the prefix here i'm just going to name it gentle forest as well you can select the sprite or you can grab the sprite and put it over here and then it shows up so when we have this this is now our tile set and fortunately this one actually has the right width and height of the tiles already set but we can look at them over here and we can change it so the ones you're going to find most common are 8 by 8 16 by 16 and 32 by 32 for tile sets 32 by 32 is like a higher resolution 16 by 16 is older and eight by eight is like really classic games and i don't see that one too often the tile set offset x and y is if they did not start right here but this one actually does they created it just correctly it's really really nice to work with in game maker which is cool and then you have the separation if there is space in between any of these the output border x and y or if you're if you're going to be scaling your game up or down and kind of has to do with making your game run more efficiently but we're not going to talk about it any more than that but you can check out the manual if that interests you and then disabling source sprite export basically means you are only using this sprite as a tile set and so game maker is not going to look at it any other way so if you are going to be using this sprite for something else which i suppose you could just be kind of strange then you'll want to uncheck that box now inside of here using a tile set is actually pretty simple if we go with just the basic way of using this tile set we open up a room and we have to make a tile layer now when you are designing tile sets and using them inside of game maker you're going to have lots of tile layers and the reason is you can only have one kind of tile set on each layer so right now we actually have a good deal of things we can use this tile set for it actually has like trees and waterfalls and everything but if we wanted to add in maybe some berries or some houses or some boxes that aren't in this tile set we have to add a new tile layer and then we can choose an entirely new tile set now you might also do this when you have the same tile set to add a sense of depth so if we use this one right here and i add in let's just add in some ground and i can change the size here so i'll zoom in and we'll work with a pretty small spot of land over here let's say this is what we've got for our tile set right now is this whole section right here now you can come in here and you can design different sections of it which might be kind of cool i'm not a very good designer so i'm not going to spend a lot of time on that but we've got a ground here we've got some grass there you go this is how you use a tile set you just choose the parts you want and then you set it up some tile sets actually have things laid out in a fairly large mode like a whole house will actually be in the tile set itself whereas other ones you have to construct it tile by tile which actually makes a lot of sense when you're more of a designer because it's a lot easier to then have infinite variety with a very small tile set now the reason for two layers comes in right here if i wanted to put this over something or if i wanted to use this tree which has transparent pixels it'll actually get rid of all of the other ones inside of there but if we go to tile set two and i wanted to put this in here then it looks just fine because those transparent pixels aren't deleting the other ones on the same layer so when you're designing a level you might have 5 6 10 tile layers for the same tile set because you want to layer on lots of different things from the same tile set that is perfectly normal and is used very commonly so that's basic tile set design but the really cool thing in game maker is something called auto tile which is what we're going to look at next so let's go into the tile set and i'll press f12 to maximize this you have something called a brush builder tile animation and auto tiling what i'm going to tackle today is auto tiling because it's the more complex of them but also the more useful when you start designing larger levels so we're going to zoom in and we're just going to use this section right here there are two auto tile templates 16 and 47. i haven't seen very many 47 auto tile templates but if we were to look at the game maker manual it actually shows you right here the different kinds of tile sets that you would need so for 47 you actually need 47 tiles inside of a tile set that all line up exactly to what game maker wants so we don't have anything like that instead we have a 16 one and you press the plus button and it brings up which tiles you need now i personally find this really difficult to read and understand exactly what they're looking for but essentially the darker area is where you want the tile set to be like the main portion so here this one the dark area needs to be grass in the top left corner so but it only needs to be a tiny bit of grass so as we go through here we're going to select the tiles from this tile set and then we're going to be able to just hold it down on our auto tiling and create a level that is dynamic based on how we move our mouse around it's really really cool so let's create it now so the first one we're going to do is just a regular old patch of ground then we're going to choose this piece of grass over here because it's got the grass in the top left then we need the grass on the top right now we need a grass in the top section entirely which is there then bottom left then left now this one needs to have the empty space in the middle here even though it's kind of gray so i'm going to choose that one and then we need to choose the grass here but this one actually needs to have the grass all the way in the left and an empty space in the bottom right corner which is this one right here then we choose this small grass here which is the other one that looks like this right there do we need the grass on the right over here bottom we need to grass this one here to empty space on the bottom left we need the bottom grass there and we have to have this one and that one and then finally we choose just a grass one in general now that's all of the ones that we need and assuming i did it right we can now come in here and i'm actually going to delete these tiles add a whole another one just so that we can work with something fresh choose the same tile set and then you go over to libraries and you can actually name different auto tiles because we could actually have multiple auto tiling libraries from this one sprite sheet i think we could come up with something for this one over here as well if we wanted to but for now i'm just going to do this and you can see this is now a square patch of ground and if i hold down my left mouse button and move this around it's actually going to be exactly what we need so you can move this around and you can now design your level really really quickly and if i hold right i actually get a patch of grass that i can use to put inside of there which is pretty cool and it looks like i made one little mistake so if i connect it like this i can see that i messed up the one the connecting ones but we can come back into the auto tile and this is the one i messed up so i'm going to click the clear to delete that and the clear on this one so those two should actually be reversed so instead i'm going to click on this and choose that one and do the same for that now if we come in here again and we redo this we should now have it working correctly and i think that looks really really nice and you can see here that that does line up correctly and now you can very easily scale your game to make a huge level that actually still looks pretty good and auto tiling is basically magic not really you now know how to make it and that's exactly how it works auto tiling is an extremely powerful feature that allows you to design fairly large levels fairly easily it's a very cool feature and if you wanted to do like a 47 template you'll probably need to actually hire an artist or find a tile set made specifically for game maker as i don't know how many other sprite editing or tile level design software that uses this kind of auto tiling system which can make it really hard to find just a generic tile set but auto tiling is just a nice feature it's not something that you have to have there are thousands of free tile sets out there that don't have auto tiling in them and you can still use them to make really really awesome games but if you're making a larger scale game then auto tiling can be a really big help and you can also just take tile sets and move them around and create them yourself and then you'll be good to go now if you messed up at all in your tile set it'll turn red because i just actually clicked on several inside of here and if you've used a tile before it will turn red because you cannot use the same tile at all if i go ahead and delete this then this is still here but now there's no actual auto tile apparently it still remembers it currently because i have it selected somehow which looks like it's more of a bug in game maker than anything else and there we go now it's gone so once you delete it it's gone but the tiles still stay there which is i guess kind of cool something i did not know and there are probably a lot of things that you don't know about game maker yet and that's okay because you're learning and if you like a physical book to read through and go through to learn from you should check out my kickstarter which just has a few days left to go but we are really getting close to the goal and this book is going to cover everything that we've talked about already and so much more because it's going to take you from knowing nothing to be able to make your dream game by the end of the exercises that are inside of this book so check it out and if you're more of a visual learner then you can check out the beginner course that i've got on here where we go through this and make a really cool top-down space shooter and if you use the coupon code newbie when you sign up for this course you'll get 20 off of it but if you want to try and wait to win it the details to win are super simple just leave a comment on any of my game maker tutorials and a month after it's been out i will draw a winner from the comments and send you a message that you have won and you can use the coupon for this course to use this one for free or you can use it as a discount on some of my more expensive courses or bundles i have a series here to take you from beginner to expert in three courses with a lot of content and you can buy that all in one big bundle as well and a shout out to all of the awesome people supporting me over on patreon if you want to see your name on the screen or get other perks like joining my discord or one-on-one training with me check it out in the description down below some links are going to be coming up that you might find useful if you want to keep watching from me but as i always say keep making keep learning and i'll talk to you later [Music] you
Info
Channel: Let's Learn This Together
Views: 9,966
Rating: undefined out of 5
Keywords: GameMaker Studio, GameMaker Studio 2, GameMaker Studio Tutorial, GameMaker Studio 2 Tutorial, GMS, GMS 2, GMS Tutorial, GMS 2 Tutorial, LLTT, Let's Learn This Together, GameMaker 2, GameMaker Projects, GMS 2.3, GameMaker Studio 2.3, gamemaker beginner tutorial, gamemaker studio beginner tutorial, Tile Sets, Auto Tiling, gamemaker tileset tutorial, gamemaker studio 2 tileset, gamemaker auto tiling, Beginner, Basics, Game Tile, GameMaker Studio 2 Tips, Learning, Learn GameMaker 2
Id: dKCK6HPvk3M
Channel Id: undefined
Length: 12min 30sec (750 seconds)
Published: Wed Oct 07 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.