The Absolute Beginners Guide Part 3 - Get Familiar with GameMaker Studio 2

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] welcome back what we're gonna do now is jump into game maker studio the software and i'm just gonna show you how to get around in it what you can do and talk about the different things inside of it so that you're familiar with some of the terminology now you don't need to be an expert on terminology you don't have to memorize everything a lot of it will just come to you as i talk about it more as you start seeing it as you start interacting it with it yourself so i just want to give you an overview in this video so if you've used game maker studio before at least a recent version of it because they have constantly updated it and changed the ui so if you've used a recent one in the last six months maybe even a year you're probably fine to just jump ahead to the next video otherwise join me on the tour so first thing is gamemaker should be on your desktop if you installed it it might have put it on there if not you can go into your programs you can search for game maker studio and we'll just bring that right up now i'm running the most recent version of game maker and they just updated the ui so this is what it looks like now so as you're learning with me you can also jump around and check out some of these other tutorials and blogs they have check out fire jump that's done really really well the video guy is fantastic it's me by the way and otherwise let's go ahead and just get an overview of this so we have our recent projects here tutorials links you to a new page you can do a new one open an old one or import a project we're going to be doing a new project now what's kind of cool in this updated ui is that you can choose from templates and they have a bunch of them right here or we can just do a brand new one which is what we're going to do so i'm going to click on new and we want to do gml so d stands for drag and drop it allows you to use code blocks to move things around and connect it without doing very much coding at all you still have to type in things like values sometimes you even have to type in the function name itself but the majority of the code is hidden behind blocks that you just connect and drag together this is great if you're a complete beginner and you might think we would start with that but the issue i have with dnd is that there's not a lot of resources out there and it is also more limited than gml so if you're completely afraid of coding and you're not sure what to do then i have a dnd series on my channel you can go check that out and it introduces you to dnd and then we convert it to a gml but you can also find other resources like that but the thing is there just aren't as many if you go on forums ask for help look up answers to specific code problems you're going to find that in code in gml which is why we're going to use game maker language which is short for gml everything you find or at least most of it will be in gml and trying to convert that back into dnd it's just it's a lot of work and if you can already understand gml converting it to dnd i think er just is kind of a waste it is more limited there are some things that are just not possible or very difficult to do in d d so we're just going to do gml because overall it's better and you can take this skill anywhere you want because once you become familiar with gml gamemaker language it's very similar to other languages like c sharp java so if you want to jump into unity or unreal engine or you wanted to start doing back and server development or making websites these are things that you can do and gml is a fantastic place to start so choose gml and we'll give it a name so i'm just going to say exploring and apparently i already have one called that so we'll just call it explore and i'm going to click let's go because that's what they've changed it to instead of just create okay so let's go ahead i'm just going to look at this screen fully for you so you can see it as we go around explore it yourself as we go through this remember do what i'm doing but also take the time to pause the video and just explore yourself so game maker studio is a ide or a game engine an ide stands for integrated developer environment ideally you can do everything you need to do inside of game maker you can make your own sprites you can do your own animation cut scenes all of it now there are some things like if you need a font well you're not going to be able to make your own font inside of game maker well kind of but not really so most of the things that you want to do you can do inside of game maker everything that you were gonna make will be over here on the asset browser now by default i find the asset browser to be pretty small uh if you like small text that's great i like to bring mine up just a little bit so if you come down here near the bottom right this arrow will allow you to resize your asset browser ui so i usually put mine around 150 and then it's also a tab everything in game maker is tabbed which means that we can grow and we can shrink this we can move our asset browser around all you gotta do is click on that tab hold it down and you can move it over here you can let go of it here and then if you want it can just be floating around i tend to keep mine on the right hand side but this is just a tab and you can do whatever you want you can add more you can have lots of different tabs organized however you want now if you find yourself clicking things and you accidentally delete a tab and you're not sure how to get back to where you want to be at any time you can come up to layouts and click on reset this will reset it back to the beginning layout everything back to default that means the scale is also back to default so i'm going to change it back here if you're ever looking for just one window you can just do windows up here and click on what you want to find now you'll notice that when we reset the layout it actually gave us another tab over here so now we have workspace 1 and workspace 2. now workspace is not a very useful name fortunately we can double click or right click and rename this and we could say we're working on the player in this workspace so we have everything about the player object sprites code all that stuff in here and then this workspace is for something else i don't know now the only thing that game maker gives you right off the bat is a room so over here in the asset browser if we open by clicking this little arrow we can actually see that we get room one and now if i double click on this now if you double click slowly or just click like once it's gonna might try to rename it for you so if you're clicking make sure you double click quickly and then it's going to open up the room now the room brings up another tab on the left over here and it brings up another tab up here called room one now we'll get into the rooms in a little bit but for now go ahead and close that i'm gonna close the player workspace that i made as well so over here on the right in the asset browser is where we create and find everything that's going to be in our game at the top we have things for quick access we can look at recent favorites room order some of these are useful like game options okay you need these there are other ways to find them but you do need your game options everything else here i rarely use so i just go ahead and minimize this you can actually get rid of it inside of preferences which i'm going to show you a few really useful preferences here in a few minutes but right now just minimize it we don't need it hey i hope you're enjoying the absolute beginner's guide to game development and i wanted to let you know that i've got even more content available on my website let's learn this together dot com and right now for black friday 2021 i'm hosting a sale of up to 30 off of all my content you just use the code bf 2021 or click the links in the video description to get that and for the first time ever if you want a physical copy of my book you can get that for free if you purchase the complete bundle on sale using the code bf 2021 go that extra step in your game developer journey and make it happen so let's go ahead and jump back into learning so i'm not going to go down the line because some of these your you may never use some of them we're not going to use for a long time we're going to stick with the main two which is going to be sprites and objects so first let's do a sprite so if we want to make a new asset everything over here is an asset they have specific names but a generalized name is asset so if we want to make a new sprite we need to right click and you get this context menu now if you right click on this group like this little icon it's going to give you a color picker instead so yeah you can change the color if you want like this is a nice little teal and then everything inside of it will also change but if you're trying to make a new sprite we need to right click over here or at least just not on this icon so right click the first thing here is create and it's going to open up the list of everything to create now this is an alphabetical list so what we're looking for down here near the bottom sprite i'm going to left click on that and it gives us a new sprite it gives us a name of sprite one it's not a very useful name it doesn't tell us anything at all but we can rename it right here from the asset browser we can also rename it over here so i'm going to come over here to this window this is called the sprite editor and this you can edit your sprite so we have a name we have the image size we can edit the specific image itself and we can also bring in an image so we can make our own but we can also bring our own in so i'm going to rename this spr and spr simply stands for sprite now i'm giving it a prefix here this is what it's called spr is just a prefix which just stands for something before the primary thing so spr is our prefix for sprites the reason that we have prefixes well let's name this and then i will show you the reason for it so spr and then i'm going to say player with a capital p no spaces if you put a space in here it won't work so if i try to do a space it's going to tell me that it's an invalid name and it will not work and it will revert it back to what it was before so it can only contain letters numbers underscores and it cannot start with 0 through 9. so spr player is a sprite that will be our player sprite now if we had which we will in just a second but let's say we wanted to have an object which is what actually runs code we wanted to have an object player and a sprite player so if i named this player and then i created an object you don't have to follow along quite yet i just want to show you what happens we create an object and we also call this player it's an invalid name because it's already in use asset names must be unique which means that you can't have something called player as a sprite and something called player as an object game maker won't allow it and in general you don't name things the same because it's very confusing so for all the sprites i'm going to give it a prefix of spr and then i give it its real name so this is spr player when we make an object it'll have a prefix of obj paths scripts sequences everything over here all the assets we will have a prefix for them this helps us to distinguish which one is which and not have any naming errors so here's a sprite but there's nothing in it pretty boring so let's click on edit image and this is going to bring up the image editor and inside here now we can create our own images we can create our own sprites we can create our own animations and the tools here are pretty robust and allow you to make pretty much whatever you want now if you are an artist and you have your own tools go ahead and use those you can just bring them in here when you're done and it'll work perfectly fine if you're not an artist i will also be showing you where you can find a lot of really great high quality free to use art i'll also go over things like licenses so that you don't get in trouble trying to use something you should have paid for and then you have people coming after you suing you or telling you to take your game down or whatever so we'll cover all of that later but if you want to make your own stuff you can absolutely come in here and i will give you just a really quick rundown of this gamemaker on their youtube channel has much more in-depth breakdowns of the image editor the sprite editor the object editor those are also done by a really great guy that's also me so be sure and check those out if you want more in depth on that so we have the toolbox colors and brushes the first tool that's automatically selected is the paintbrush brush tool so this is the color we have on the left click this is the color we have on the right click if i just left click and hold down and move it around it will draw for us now it's drawing one pixel at a time so if we want to change that we can change the brush or we can come up here and change the size so the default brushes goes from one pixel to three to five to seven to fifteen and then you also have circles so this would be a really big brush here but it works just fine so then we can bring it down if we want to change the color we can do that too and if you double click on one of these colors it's actually going to bring up your color picker here so you can input your own hex values if you know exactly what it is you can do rgb you can just choose from here you can adjust the alpha which is the transparency and then we can do something like that so this is the sprite that i just made it's not pretty i'm not an artist i'm guessing you can do much better but if you're not happy with it you also have an eraser tool so you can come in here and erase you have a fill tool you can also color remove and color replace which is pretty handy so if we wanted to change our white to pink we could easily do that with the color replace tool and then the rest of them well they're not necessarily self-explanatory but i'm guessing if you hover over it it tells you your name you can figure it out pretty quickly there is a text tool if you want to be able to put text in there really easy you don't have to draw it by hand but this is the image that i've made we're just going to call that good i'm going to close out of the image editor window up here and that takes us back to our workspace and you can see that now it has made that image that we created and put it into our sprite so by default they are 64 by 64 pixels big not huge but that's our sprite now let's go and make an object so go over to your object group right click create and we're looking for object and i'll give this a prefix of obj and i will call it player now we can scroll down here or we can double click on the object and it will focus it so if you're like way out here you're not sure where to go you can just double click on your asset on the right here and it will take you directly to it so we have an object and this is the object editor so here's the name here's the sprite right now we don't have a sprite associated with this object and what that means is if we put this object into our game we wouldn't be able to see it because it doesn't have a sprite there are two well more than two but there's several different ways of attaching a sprite to it the two easiest ways are by clicking on no sprite right here and then it will actually take you to a window and you can just find the sprite we made so if you're following along exactly you put the sprite we made in the sprites folder so we click on that folder and here's our sprite voila or you can just find your sprite in the assets and drag it over and drop it right there if we accidentally try and drag the object into here that's not going to work so you have to drag the sprite so maybe color coding here actually is a really good idea so maybe i'll turn these objects red that way we know all of the sprites are teal all of the objects are red we don't get those confused this will actually be essential here when we start putting things in our room which is what we're going to do right now so sprites are images you can see we create them if we wanted to we could add more frames down here and have it animated but we're going to tackle animation in a later video and then we have objects now right now i know this object isn't doing anything it's not very exciting but this is where all of the code would run we're going to do that in the next video where we start tackling events and maybe work on making a very very small game that you can actually get your player moving around in but objects are where your code runs and then we have our room so let's go back to our room and double click on it to bring it up and the breakdown of the room is that there are layers and on each layer certain assets go so over here on the left we have what's called the instances layer and then we have the background layer now the instances layer is where objects go it is not where sprites go but if you try to put a sprite on there let me show you what happens because this is a very common mistake so if i want to put an object in my room but let's say we didn't have them color coded and i accidentally grabbed the sprite it's going to tell me this asset can only be applied to an asset layer and you do not currently have one selected would you like to create one well if you're not sure what's going on you're just like yeah i'm trying to put my object in the room i'm going to go ahead and click create and hey there's my object now if you tried to run your game and you were expecting it to do something nothing would happen because sprites don't have code sprites are images that's all they can be animated they can look awesome but in the end they are just images so we have created a new layer over here which means that well this isn't going to work so we're going to go ahead and delete this i'm going to right click delete asset layer now i'm going to drag the player object in and oh i'm getting another one of these things like what's going on here so i need an instance layer yeah i have an instance layer you might be tempted to just click create but if it's giving you this confirmation then that means you don't actually have a current layer selected so i'm going to click cancel this time and you can see over here how i don't actually have one of these highlighted if i click on instances then it's highlighted and i can drag my player object into the room and now i have an object in here so to run our game we can come up here to the top left and do run or press f5 this is going to load your game up it's going to bring it up in this window and there's your game it's got an object it has a sprite associated with it granted there's no code yet you can't do anything but you are running a game and that's a pretty big accomplishment if you've got your object in your room then all you have to do now is just put some code in it and you can actually start playing a game so objects run code sprites are images we put sprites onto the object so we can see them and interact with them visually a room is a level where you put your objects you can also put backgrounds and assets and more things like that but your your room is a level and you can have lots and lots of rooms in here those are the three main players and that's all we're going to focus on for just a little while because really yeah you need more to make like a fully finished game but we can make some pretty fun games with just objects sprites and rooms so i hope you're able to follow along if you have any questions if anything was confusing or if you managed to discover a new error or a bug that i didn't cover let me know because i am sure someone else ran into it and the more people that speak up the more people get helped i'm trying to cover everything that i can think of that you're going to struggle with but i might miss something so let me know keep following along keep exploring and experimenting yourself and when you're ready i will see you in the next video as always keep making keep learning and i'll talk to you later [Music] you
Info
Channel: Let's Learn This Together
Views: 244
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, game maker studio, game maker, making games, game maker studio 2 tutorial, learn game maker studio 2, absolute beginners, absolute beginners guide, beginners guide, get familiar with, big game engine, game engines for beginners, lets explore, intimidation factor, Part 3, yoyo
Id: mPpjEBwtdlc
Channel Id: undefined
Length: 23min 36sec (1416 seconds)
Published: Mon Nov 29 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.