How to make your own video game | no coding needed | Game Maker Studio 2

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi there in this tutorial i'm gonna be showing you how you can make your very own video game from zero to hero which means i'm assuming you've never done this before but don't worry i'll show you everything you need to know to create this from start to finish we're gonna be doing this using the software called game maker studio and we're going to be doing this in just under five minutes and without writing any single line of code if you're looking for a new skill to impress friends or you're looking to get into computer programming this is definitely a good video for you to stick around for in fact i myself got started in my computer programming career about the age of 14 using this very software by the end of this tutorial you should be able to create the following game right here [Music] i'm gonna put a link to game maker studio and all the assets you need below the description of this video all you need is a free version of the software to follow along but before we get started with the tutorial this tutorial is very very special and dear to my heart because this is my very first tutorial as a dad of two beautiful daughters yes literally two weeks ago while i was editing and filming this very tutorial my wife broke the news to me that it's gonna be time for us to go to the hospital and about a day later our beautiful daughter was born so this tutorial would always hold a special place in my heart because my daughter was born in the midst of filming and editing this tutorial so let's make this one below and go viral hit that like button for the youtube algorithm to recommend this video for more people to watch and also when you finish watching this if you know someone that might benefit from this definitely share it with them so that we can make this video go viral for my daughter thank you very much now let's put five minutes on the clock and get started with the tutorial come on before we get started there are three things i'm going to mention a lot in this tutorial so let's explain them so you can understand what they mean the first is a sprite sprites are just all the visuals you use within your game so all your images this could be both static or animated images next we have something called an object and an object is where you put all your programmable logic into so if you're going to be programming anything in your game it's going to sit within your object by themselves objects are not visible to make them visible you'd have to attach a sprite to them and then they take the form of that sprite finally we have something called the room and the room is where your game comes to life this is where you view that everything that your player would end up seeing when they play a game so you put all your objects and your sprites within your room you can almost think about it like a powerpoint slide that is what a room is now that we have that cleared up let's get started with the tutorial to get started i'm going to click on new click on the drag and drop option and start a new project all right so the first thing we want to do is import our sprite so if you head over to the asset browser right here to the right and scroll down to the sprites folder and right click with your mouse and go to create then you can select sprite you can name your sprite anything you want but it's advised to start with spr just to denote that it's a sprite i'll call mine player and then right here i can now go ahead and click on the import button to import my image and for my player i'm going to be using this cartoonized version of myself if you want to know how to make one for yourself i'm going to give you more information on that at the end of this video all right so i'm just going to go ahead and repeat the exact same process to import the rest of the sprites for our game all right once you're done adding all your sprites the next thing you want to do is add your objects to the game and that's simple simply go back to your asset browser to the right and under the objects folder click on create and select object just like your sprite start with the word obj to denote that it's an object i'll call mine player and if i move to the left you're going to see your object editor the first thing we want to do is assign a sprite to it because we mentioned that objects are not visible by themselves to do so simply just click on the sprites no sprite icon and select the appropriate image that you want to show whenever this object is added to a room all right so far so good the next thing we want to do is go ahead to start programming our objects to add some life to our game and to program objects gamemaker uses something called events events are simply triggered whenever something or calls within your game for example when the keyboard or mouse is pressed and so on and so forth to add an event simply click on the add event button it gives you several event in my case i want the player to react whenever any of the keyboard arrows are pressed so i'm going to go to the key pressed event and there's an option here for arrow up next we have something called actions and actions simply tell the object what to do whenever an event occurs in our case i want the player to start moving upwards whenever the up arrow is pressed so i'm going to search for an action called set direction i'm going to drag that in and then i'm going to select the up direction and then i'm going to also set a speed for it to move out whenever this button is pressed so i'll drag that in and put a speed of 4. so i'm going to go ahead and repeat the exact same thing for the down arrow key but this time around i'm going to set the down direction but also still set the speed of four and repeat the exact same step for both the left and right arrow keys next i want this object to stop moving whenever the player lifts their hands off of any of the arrow keys to do this i'm going to add another event that says key up which is triggered whenever a key is lifted up and i'm going to select any for any of the keys and put set speed to 0 as my action so that the player stops finally i'm going to go ahead and add two more objects one for the wall and one for the finish line but i'm not gonna add any actions or event in this for now alright we're moving now to the final step which is creating rooms to make all of your games visible to add a room you simply go to the rooms folder and right click like we've done before just click on rooms but the game always comes with at least one room so i'm not going to create a new one i'm just going to rename that room uh to my main room and then open that up by default it comes with a black background to change that you simply just go to background and then right here at the bottom where it says no sprite like we've done with the object select whatever sprite you want to show as the background i'm also going to click on stretch so that the background is filled in properly to add an object to the room simply go to your asset browser click on the object and drag it and drop it in the room that will create a new instance of that object and if you hold out on the windows or command on the mac it actually allows you to duplicate that object so i'm just going to hold the alt key and continue to duplicate our wall right here to add it throughout the maze and then i'm going to speed ramp all of these and go ahead and build the rest of the maze for this game all right that is looking pretty good to me next i'm going to go ahead and drag my finish line object and just drop it right into the room and you can always resize your object by just going to the edge of it and click and drag it so i'll make this a little bit smaller and finally i'm going to add my player object i'll just drag that and drop it in the room so let's see what all of this looks like so far to run your game simply go right here to the top and click on the little play button and that's gonna run your game as you can see if i press either of the arrow keys the player moves in that direction the only issue right now is that our player is moving right through the wall so let's go ahead and fix that all right to fix this i'm gonna open our wall object and then i'm gonna check this option right here that says solid so that the game knows it's a solid object next i'm going to open my player object and add another event the collision event so i'm going to say whenever it collides with the wall i'm going to say set speed to 0 so it stops moving all right so this should fix that issue but before we run the game i'm going to create one more room i'm going to use this as my end screen this is what happens when the game ends and then i'm going to go back to the player object and add another collision event this time around i'm going to say whenever it collides with our finished object and then i'm going to search for an action that says go to room then i'm going to select this option to select what room i want it to go to and i'm going to select my end room right here all right so if you're throwing a bit of sound design your final product will look something like this [Music] congratulations just like that you have your very first game made hopefully that was not too hard for you to follow along but before we end the tutorial i have a few more tips for you that might help you when you start exploring the software for yourself so let's get to those tips alright so bonus tip number one is adding sound to your game and this is super easy you just go to the sound library right here and right click and click on create sound i'm going to call this background music to use for our background music and then again to the left you can go ahead and upload whatever sound you want to use you can play it you can change the volume from here and then the next step from that is to actually have it play in the game and to do this you'd have to trigger this from an object so let's go to the player object and add a new event i'm gonna add an event called a create event so this is triggered whenever the player is created which is normally at the beginning of the game and then i'm gonna look for an action that says play sound i'll drag that in and just select the sound that we've added just now and and then make sure that it's looping so it plays throughout the game and just like that we have audio in our game bonus tip number two has to do with creating multiple levels in your game this is quite simple all you have to do is just create multiple rooms and design the levels in each of those rooms and whenever a player finishes one room you can use the go to room action like i did earlier on to move the player to the next level it's that simple all right my final tip has to do with exporting your game so let's say you're done testing and running this on your computer and you want to share this with the rest of the world it's easy to export what you want to do is head over to the top right here where you see the target sign click on that and you can select whatever platform you want to export this to whether windows mac or even the web if you're using the free version you're not gonna see this because this is a paid functionality and one thing they don't tell you so clearly is that sometimes even after you've paid for this this might still not show up you have to log out of your account and log back in i don't know why they don't make this very clear up front it's kind of annoying but yeah that's something you might have to deal with so once you've done that and selected the platform all you simply do is just go right here where it says create executable to click on that and then it's going to create their respective installable files for each of the platforms or html files if you're trying to export this for the web and then you're ready to share this with the rest of the wall if you'd like to try the live demo of this particular game that we did today a link to that is in the description click on that and you can test the game out for yourself all right that's all i had for you today hopefully that was not too hard for you to follow along we started with a very simple game today but you can use the same concept to create even more advanced games and even 3d games in fact in one of my upcoming tutorials i'm going to be showing you how you can create a skateboarding game using the same concepts that we have done here today so if you want to see that make sure you subscribe to the channel and make sure to turn on that notification bell so you're notified whenever that tutorial comes out and if you're looking to get into computer programming i do advise to continue with the drag and drop option it helps you understand some concepts of programming and once you've mastered that you can switch to game maker language where you can start writing some code and also move use that to then move to other languages like c plus plus and more advanced languages like that that is the same thing i did when i was getting into computer programming earlier on in my career and in case you were wondering how i got that cartoonized version of myself that is a photoshop vector file it does take a little bit of mastering to do that but i have a tutorial and a photoshop action that creates for your nice version of your picture which anyone can follow along and use it it's quite simple to use but it's not going to give you as good a result as what you saw there because it's an automated tool i'll put a link to that tutorial and the action in the description below and because this is a special video i want to do a giveaway to give two people a professionally done cartoonized version of your picture so just make sure you subscribe to the channel and then let me know down below why i should give this to you and i'm gonna be picking two people and giving this to you thank you for stopping by i'll catch you guys in the next video make sure you keep learning bye
Info
Channel: Emmanuel Crown
Views: 4,474
Rating: undefined out of 5
Keywords: introduction to programming, How to make a 2D Game in Unity, how to make a 2d game, how to build a maze, make my own video game, make a game for free no coding, computer programming for beginners, game maker studio 2 tutorial, game maker studio 2, game maker, game making for beginners, game making for android, game making for pc, making a game on mac, how to make a game on macbook, video game, learn to code
Id: PEBsf-qiK9Q
Channel Id: undefined
Length: 11min 47sec (707 seconds)
Published: Wed Sep 22 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.