HOW TO CREATE YOUR OWN GAME Unity Tutorial (For Beginners) | Aizhen Fahm | Skillshare

HOW TO CREATE YOUR OWN GAME Unity Tutorial (For Beginners)

Aizhen Fahm

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
5 Lessons (14m)
    • 1. INTRODUCTION

      0:18
    • 2. CREATING A PROJECT

      2:52
    • 3. IMPORTING UNITY PACKAGES

      2:55
    • 4. ADDING A PLAYER

      4:06
    • 5. FINAL PART

      4:06

About This Class

This class teaches you the basics of creating your own games using the UNITY ENGINE

It talks about the basics, creating and importing your own packages etc

Transcripts

1. INTRODUCTION: This is the best tutorial for you. I'm gonna teach you all essentials needed before you start making a long game. And this is basically for beginners and for people that are coming back to the software that haven't using their walk. So I'm gonna teach all essentials from the inter fees to importing your models and old essentials needed before you start your own gay. 2. CREATING A PROJECT: So when you first started community, you're gonna see something called angry Bots. And this is basically a game that showed the capabilities of unity three D. It's made by you need themselves. What? We're gonna skip this and create our own project. And this is the first step of creating own game. So I'm gonna go file new project so you can name it, whatever you want And alright, so first of all, if you want a game, we have to create a scene because we without a scene, we don't really have a game. So let's go to file new scene or are you safe seen ass? And then when you press 18 as receive, it is whatever you want, Um uh, and saving under your assets folder. So press save. And there you go. So now we have a scene, and I'm gonna teach you guys the interface. And this is very important that you guys fluently know the interface of unity. Three D, before you create your game burst off. There's a lot of tabs in unity, and the 1st 1 is her rectory. And this basically what you have in game and next to that um, we have the scene tab on the game time. These are very different. The scene tab is basically the in game editor. You can add it to your map. You can move objects around in the game. This is basically the editor of the game itself. And the game tab is basically what you see when you're playing the game. It's a perspective of the game, and this is the perspective of of wherever you are, you're basically got your the god of the game. Yeah, these are very important. You know the difference between them on Duh. Yes. So now for the interface itself for moving for scrolling and you can scroll in and out, use your school. Uh, you just scroll in and out. You know you know how to school in. Use your mouth. Next is to pan around you click on this hand and you just pan around. And if you want to move in 360 degrees, you right, click on your mouse and you can combine this with the pan around and you can easily get around objects and yeah, so next thing is the selection tool. You can press the selection tool and then click on bed. By the way, make sure you're on the scene. If you want to do all this, so pass the selection tool and then click on any object you want in your game. All we have is the key for now. But you can move it around, up and down all the axes X, y and Z and Ah, yeah, So next, who is the rotation toe? And you didn't rotate any object. Make sure you select it first. If it's like this and you just select the object itself, you want to rotate and yeah, you can just rotate it however you want and the next object the next. And the last tool is the skill toe And this you can skill the object and the X y z all the axes and yeah, so this is basically all you need to know for interface. Um, in unity three D 3. IMPORTING UNITY PACKAGES: import unity packages. And these are basically assets for your game To make it better enhancer game. And, for example, add a first person controller without this, you don't really have a game. So we're gonna go to assets Import package character controller. So this is the first package we're gonna import, and then we're gonna click import one. This window pops up on, Just wait till it airports. You're going to notice a folder that pops up. It's called standard assets. You can open that. And as you can see, this is the character controller that we imported. So we're gonna import another one called Corinne Assets, and then you click on that and it imports it. So So once you're done importing all three the sky boxes of the terrain assets and the character controller, we're gonna go back to the assets. Fulcher, we're gonna double click there. The scene that we made and press don't see. So this basically to save seen now. So we're gonna go to now we could finally create a terrain. So I'm gonna teach you guys how to make the surrounding and the terrain of the player. So I'm gonna go to game object, create other terrain. So once we've done that, a 70 year, you've got a simple terrain and it's flat. But we can have mountains and make it Montini's and make it more realistic. So again, we're going to go the selection tool. I could talk, you know, intervenes. Click on it. And, as you can see here to the right and the inspector tab, there's this. There's all these tools that you can add it the terrain with. But first of all, we're gonna quit on this one, which is the 1st 1 which is the raising and lowering of the terrain. So there's a lot of brushes that you can use, but I'm gonna use this one for now and increase the brush size on Just Make Mountains is actually really simple. Making trains is pretty fun and unity, and it's very, very simple. No modeling needed nothing like that. So once we're done with the train, we want to add texture to it, so make it more realistic. So let's click on it and go to this fresh tool and press edit texture at texture. So once his window pops up, press select and find the texture that you want And, yeah, there's a texture. And that came in the package that we imported. Suppress, Add on There you go. So it automatically adds it to the train itself. So now we're gonna add a directional light to the game because, as you can see, that game is a little dark, so we're gonna go to game object, create other directionally. So there it is. Press on that on. Uh, yeah, there you go. So as you can see, the game is a little brighter on you can increase the intensity of it. And yeah, I think that's good for now. All right, so now it's at a sky boxes, As you can see here, we don't have a Scot skybox right now, and it's great. This guy's great. So that's not really realistic. So let's go toe at it. Render settings and skybox or two should be right here. So once you see skybox, material will go to the right and quick on that little circle with the dot dot in the middle and find a skybox 4. ADDING A PLAYER: And there you go. So it's much more realistic right now. All right, so now let's add a player into the game. This is really exciting. This is actually wannabe bring our game to life, and it actually has. You can actually play the game itself. So let's go to, um, this asset and then standard assets and then character controller. So you can also go to the search bar and search of first person controller on. Yeah. So this is basically what we imported when we went to game object or assets import package . Yeah. So we're gonna drag this into the scene and yeah, so once you got it there, you can zoom in by pressing f on. We got really, really close up off the player. So let's put the player above the ground. Make sure this is very important to make sure the player is always above the ground or else it's good he's gonna sink through the map. So once we got that, we can actually click on the game. And as you can see, this is the game perspective. So if you have a main camera here, you can delete that because we're not gonna be using that on, uh, because we already have a main camera for the player itself. So if you want to go into play mode on actually test the game at any time, you can press this play button up here. So, uh, as you can see, this is play mode and yeah, there we go. So this is our very simple game. You free press w the player Go forward. Forward. This is a simple movements of a player. So this is the final thing. I'm gonna show you guys in this tutorial, and this is importing your own stuff. This could be a three D model script, a texture, etcetera, but, yeah, I want to show you how to do it. So you go to assets import at New Asset, And, uh, when it goes to this, you have to locate your file. So I have it on my desktop here, So open the file that you want, and I believe for three models Unity supports O B J and F B X files. I'm not sure if it supports any other, so we're gonna click import on. It's gonna import it just like it imports any other file. So we have our three D model file here and now I'm gonna import that texture for the files are gonna I'm gonna the assets important you ass it and locate the file that I want. So I finished importing all my model and my texture. So now, if you want to add the model to the scene, you just literally drag it onto the scene. It's a simple that. So now I'm not re skill it like I showed you in the interface tutorial. So, yeah, now that I skilled it, I am going to bring it down to the ground. So it actually touched the ground. And this is all from the interface stuff that I showed you guys. So now I'm gonna add a textured itself to the house, so once it selected, you can select it again or double click it and it comes with this. You can assign texture export, so you literally just have to drag the textures onto, um, you know the model itself. So it's pretty simple. Uh, that's definitely not the texture for it. Probably this one here. There we go. So for now, I'm just not going to re sign all every single texture. I'm just showing us how to do it. And if you want, for example, to give it a speculator kind of ah, shiny look to it. You can click it again and go to this. The shader on Goto There's a lot of settings you can do, but I'm gonna do speculate for now. So yeah, it gives it kind of like a shine effect. So if we played press play mode, you can see our three d model that we've just added, All right, so that is pretty much it for the basics tutorial. And if you guys want to learn how to make the first person shooter game in unity, check out my Siri's. I made I mean six videos on how to make a FPs games unity. It's a really good Siri's work. Corn in it just I provide together with three scripts and everything. Just check it out. It's really good, um, to get you started in making an F B S t. Would you like to make one and definitely check on my form? You want 5. FINAL PART : And there you go. So it's much more realistic right now. All right, so now let's add a player into the game. This is really exciting. This is actually wannabe bring our game to life, and it actually has. You can actually play the game itself. So let's go to, um, this asset and then standard assets and then character controller. So you can also go to the search bar and search of first person controller on. Yeah. So this is basically what we imported when we went to game object or assets import package . Yeah. So we're gonna drag this into the scene and yeah, so once you got it there, you can zoom in by pressing f on. We got really, really close up off the player. So let's put the player above the ground. Make sure this is very important to make sure the player is always above the ground or else it's good he's gonna sink through the map. So once we got that, we can actually click on the game. And as you can see, this is the game perspective. So if you have a main camera here, you can delete that because we're not gonna be using that on, uh, because we already have a main camera for the player itself. So if you want to go into play mode on actually test the game at any time, you can press this play button up here. So, uh, as you can see, this is play mode and yeah, there we go. So this is our very simple game. You free press w the player Go forward. Forward. This is a simple movements of a player. So this is the final thing. I'm gonna show you guys in this tutorial, and this is importing your own stuff. This could be a three D model script, a texture, etcetera, but, yeah, I want to show you how to do it. So you go to assets import at New Asset, And, uh, when it goes to this, you have to locate your file. So I have it on my desktop here, So open the file that you want, and I believe for three models Unity supports O B J and F B X files. I'm not sure if it supports any other, so we're gonna click import on. It's gonna import it just like it imports any other file. So we have our three D model file here and now I'm gonna import that texture for the files are gonna I'm gonna the assets important you ass it and locate the file that I want. So I finished importing all my model and my texture. So now, if you want to add the model to the scene, you just literally drag it onto the scene. It's a simple that. So now I'm not re skill it like I showed you in the interface tutorial. So, yeah, now that I skilled it, I am going to bring it down to the ground. So it actually touched the ground. And this is all from the interface stuff that I showed you guys. So now I'm gonna add a textured itself to the house, so once it selected, you can select it again or double click it and it comes with this. You can assign texture export, so you literally just have to drag the textures onto, um, you know the model itself. So it's pretty simple. Uh, that's definitely not the texture for it. Probably this one here. There we go. So for now, I'm just not going to re sign all every single texture. I'm just showing us how to do it. And if you want, for example, to give it a speculator kind of ah, shiny look to it. You can click it again and go to this. The shader on Goto There's a lot of settings you can do, but I'm gonna do speculate for now. So yeah, it gives it kind of like a shine effect. So if we played press play mode, you can see our three d model that we've just added, All right, so that is pretty much it for the basics tutorial. And if you guys want to learn how to make the first person shooter game in unity, check out my Siri's. I made I mean six videos on how to make a FPs games unity. It's a really good Siri's work. Corn in it just I provide together with three scripts and everything. Just check it out. It's really good, um, to get you started in making an F B S t. Would you like to make one and definitely check on my form? You want