Making a Simple Game in Unity (Part 1) - Unity C# Tutorial

Learn how to use input to move our player character around the game world in the first part of the Make a Simple Game series.
Making a Simple Game in Unity is a series that will be focusing on the fundamentals of game development. We're going to be creating a simple game where you are to move the player to the goal while avoiding patrolling enemies.
We'll learn how to create patrol points for enemies and allow them to travel between them, accumulate score based on time and token collections, a level selection menu, and more.
If you are interested in this series, please consider leaving a comment and dropping a like to help keep it alive.
Twitter:
/ awfulmedia
Google+:
plus.google.com/+AwfulMedia
Thanks for watching!

Пікірлер: 1 200

  • @CameronPenner
    @CameronPenner9 жыл бұрын

    Tutorial starts at 7:18. for those that want to get straight to it!

  • @fungus5137

    @fungus5137

    4 жыл бұрын

    Thanks!

  • @HkLearnsAI

    @HkLearnsAI

    2 жыл бұрын

    Thank you! VERY COOL!

  • @buttfutt4655
    @buttfutt46558 жыл бұрын

    Thank you so much for not having an obnoxious voice. Your videos are very helpful.

  • @jerryadkins758
    @jerryadkins75810 жыл бұрын

    So far, this is the best Unity tutorial I've seen! I learned a lot, especially about materials. You take the time to explain things. I can type 80 WPM and would always have to keep pausing videos to keep up when typing in the code while watching the instructor paste in code. I was able to watch your video in one window, and type code in Monodevelop in another window without pausing. Well done!!!

  • @dbredred2604
    @dbredred26049 жыл бұрын

    Best.Tut.Ever. He actually explains things! With Brackeys and other programming tutorials they just tell you to write stuff down! This is a series you can actually learn from! I highly recommend this to anyone trying to make a game. Keep up the good work AwfulMedia =) !!!

  • @janzimmer8136
    @janzimmer81369 жыл бұрын

    For those who use Unity 5, the code shown in this video for the "PlayerMovement" won't be compatible with that version. Use this code instead: using UnityEngine; using System.Collections; public class PlayerMovement : MonoBehaviour { public float moveSpeed; private float maxSpeed = 5f; private Vector3 input; public GameObject other; // Use this for initialization void Start () { } // Update is called once per frame void Update () { Rigidbody rigidbody = other.GetComponent(); input = new Vector3 (Input.GetAxisRaw ("Horizontal"), 0, Input.GetAxisRaw ("Vertical")); if (rigidbody.velocity.magnitude { rigidbody.AddForce(input * moveSpeed); } } }

  • @TheMinecraftoo7

    @TheMinecraftoo7

    9 жыл бұрын

    Jan Zimmer No this didn't work

  • @loganmichael7871

    @loganmichael7871

    9 жыл бұрын

    Kyle Barnhart I typed this up, it doesn't work the same as the guy in the video though (It doesn't have that slippery feel.) using UnityEngine; using System.Collections; public class Player : MonoBehaviour { public float moveSpeed = 10f; void Update () { if (Input.GetKey (KeyCode.UpArrow)) { transform.Translate(Vector3.forward * moveSpeed * Time.deltaTime); } if (Input.GetKey (KeyCode.DownArrow)) { transform.Translate(-Vector3.forward * moveSpeed * Time.deltaTime); } if (Input.GetKey (KeyCode.LeftArrow)) { transform.Translate(Vector3.left * moveSpeed * Time.deltaTime); } if (Input.GetKey (KeyCode.RightArrow)) { transform.Translate(-Vector3.left * moveSpeed * Time.deltaTime); } } }

  • @RyanFaeScotland

    @RyanFaeScotland

    9 жыл бұрын

    Kyle Barnhart I don't have Unity in front of me but looking at the code I see there is a declaration of a public variable other which is a type GameObject: public GameObject other; The error you are getting is probably an 'UnassignedReferenceException: The variable other of Movement has not been assigned.' which means you need to drag and drop your Player object onto the Movement script's other field in the inspector to complete the reference. However, you shouldn't even need to reference 'other' just call Rigidbody rigidbody = GetComponent() and it should work (untested). Let me know how you get on.

  • @TheMinecraftoo7

    @TheMinecraftoo7

    9 жыл бұрын

    Logan F That worked, except it doesn't have the floating feel.

  • @loganmichael7871

    @loganmichael7871

    9 жыл бұрын

    Kyle Barnhart Yeah I know, I'm still working on that :)

  • @aaronmcguigan2224
    @aaronmcguigan22249 жыл бұрын

    I encountered so many problems using Unity 5 so I uninstalled it and reinstalled Unity 4 and everything is going smooth so far. You go in to depth a lot and this really helps, I'm pretty sure you've taught me more in this one video than I've learnt towards this subject in the past 2 years that I've been at college. Thanks a lot!

  • @RyanFaeScotland

    @RyanFaeScotland

    9 жыл бұрын

    Aaron McGuigan I started with Unity 4 and I can't remember why (it was earlier this year so I think U5 was out) but I'm pretty glad I did. Looks like I dodged a bullet by doing so, a lot of people having problems following tutorials because of the differences.

  • @quakergaming4997
    @quakergaming49979 жыл бұрын

    I have been trying to find tutorials on unity, and this guy is the best so far!!!! Every one else goes way to fast and they don't explain things. I have learned to much already! So thank you

  • @Shinziga
    @Shinziga9 жыл бұрын

    The first good and explanatory tutorial found so far. The good thing about your explanation, is you share thoughts, why you did it and why you didnt. Keep up the good work, and Ill watch your tutorials from now on. Rock on!

  • @GameGrind
    @GameGrind7 жыл бұрын

    Going on 3 years now. Wow! Nice to see people are still finding it useful even with the API changes. Recently started a new series creating a Simple RPG in Unity 5. A bit more complex, with more advanced programming concepts being used, but the end result is going to be pretty cool! Check out the introduction: kzread.info/dash/bejne/gqRqt7CmpJvSYaw.html

  • @bulbulitobayagbagan9633

    @bulbulitobayagbagan9633

    7 жыл бұрын

    Your tutorials are nice and cool! your teaching style is great and easy to understand.

  • @nadyaa7357

    @nadyaa7357

    7 жыл бұрын

    same my problem if you have fix it plz let me know so i can fix it 2

  • @uhWilliam

    @uhWilliam

    7 жыл бұрын

    I love your teaching style :DD

  • @neerajkumar-greedgamesstud1259

    @neerajkumar-greedgamesstud1259

    5 жыл бұрын

    Best tutorial for beginners, slow and understandable

  • @iplayskyblock9095

    @iplayskyblock9095

    2 жыл бұрын

    Pin this comment

  • @Wiebrendh
    @Wiebrendh10 жыл бұрын

    That intro is just amazing

  • @bailey3353
    @bailey33539 жыл бұрын

    You've just sparked the greatest marble game concept of all time, my friend. This should fuel my interest for Unity and C# now.

  • @pluxfy5071

    @pluxfy5071

    2 жыл бұрын

    now that it has been 6 years, how many games have you made?

  • @SilvernodeStudios
    @SilvernodeStudios10 жыл бұрын

    This is probably the best introduction to C# Unity that I've found so far on the net. Thank you!!! Vector3 makes sense now :)

  • @mongoosethe
    @mongoosethe10 жыл бұрын

    This is really good. Thanks a lot for putting in the effort!

  • @mongoosethe

    @mongoosethe

    2 жыл бұрын

    @iyitkil :)

  • @tomdraws1177
    @tomdraws11779 жыл бұрын

    i have completely finished this episode in unity 5 and here is my coding to anybody who needs it - using UnityEngine; using System.Collections; public class playermovement : MonoBehaviour { public float moveSpeed; private float maxSpeed = 5f; private Vector3 input; // Use this for initialization void Start () { } void Update () { input = new Vector3 (Input.GetAxisRaw ("Horizontal"), 0, Input.GetAxis ("Vertical")); if (GetComponent().velocity.magnitude { GetComponent ().AddForce (input * moveSpeed); } } }

  • @acd1179

    @acd1179

    6 жыл бұрын

    Thanks!

  • @SL3APYH3AD11

    @SL3APYH3AD11

    5 жыл бұрын

    Thank you!

  • @parcode4071

    @parcode4071

    4 жыл бұрын

    Thank you sooo much!!

  • @greatgadgetseasierlife733

    @greatgadgetseasierlife733

    2 жыл бұрын

    what a life saver

  • @washingtonfaulconer1855
    @washingtonfaulconer185510 жыл бұрын

    I really like how you taught people how to actually make the player move instead of just saying 'use the character controller'. Very helpful D:

  • @chriswilloughby48
    @chriswilloughby482 жыл бұрын

    I have such fond memories of this tutorial, which I did years ago. You definitely taught me so much and I knew nothing.

  • @seanwilloughby7918
    @seanwilloughby79188 жыл бұрын

    This is the code that worked for me! using UnityEngine; using System.Collections; public class PlayerMovement : MonoBehaviour { public float moveSpeed; public float maxSpeed; private Rigidbody rb; void Start () { rb = GetComponent (); } void FixedUpdate () { float moveHorizontal = Input.GetAxisRaw ("Horizontal"); float moveVeritcal = Input.GetAxisRaw ("Vertical"); Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVeritcal); if (rb.velocity.magnitude rb.AddForce (movement * moveSpeed); } } }

  • @1097greenday

    @1097greenday

    8 жыл бұрын

    +Sean Willoughby thanks dude..i was stuck with that rigidbody.Addforce thing... it really helped..

  • @maroela2

    @maroela2

    6 жыл бұрын

    Wow thanks, this actually worked!

  • @SuperJac009

    @SuperJac009

    6 жыл бұрын

    U wrot veritcal instead of vertical

  • @erikb.k9363

    @erikb.k9363

    6 жыл бұрын

    What do i need to press ? I am a C# noob...

  • @xDchannel12345
    @xDchannel123458 жыл бұрын

    Around the 10:00 mark when he uses the directional light, I cannot replicate that in Unity. I have the newest version, has anything changed in how light works in the engine?

  • @SlightlySickish

    @SlightlySickish

    8 жыл бұрын

    +lleon79 I struggled with this too for a better part of an hour. I think I may have found the answer: go to Window > Lighting and under Scene tab make sure Skybox is set to None. Suddenly I was able to manipulate the light on the floor. I hope this helps.

  • @SpaceMoses_

    @SpaceMoses_

    8 жыл бұрын

    +Chase Lirette Thanks so much for the tips

  • @AbrarShariar
    @AbrarShariar9 жыл бұрын

    Great tutorial , easy to understand and really helpful for newbies like me who are just getting started with the Unity game engine.Looking forward to more of unity tuts from this channel. Keep on uploading these amazing tutorials.

  • @kylestankovich2199
    @kylestankovich219910 жыл бұрын

    Thank you so much. I got a book on C# and I am not finished yet but it focuses on mainly software which is fine for me as it (so far) has taught me the basics of C# so this was WAY more helpful and easy for me to follow then what it was a while back. Great job with this video bro! I am going to watch all of this series for sure.

  • @hundredfive
    @hundredfive8 жыл бұрын

    PLEASE MAKE A VERSION OF THIS TUTORIAL FOR UNITY 5!

  • @llambaman3407

    @llambaman3407

    6 жыл бұрын

    yea plz do

  • @saucyseph3783
    @saucyseph37839 жыл бұрын

    you make game making look easy :D im only 15 and im going to learn as much as i can from you, im going to make a small game maybe for IOS for my first game or something idk yet, and hopefully people will like it and il start off my game dev career :3

  • @hhigh_af

    @hhigh_af

    6 жыл бұрын

    have you made your game yet?

  • @benjamindavies5683

    @benjamindavies5683

    5 жыл бұрын

    Solid guy

  • @lukavignjevic719
    @lukavignjevic7199 жыл бұрын

    I love these tutorials, because you're one of the few people who actually tell EVERY little detail! I am trying to use your tutorials to create a prototype which can be used for Dungeons and Dragons Roll20 as a Combat Simulator type of thingy, where you can actually see the combat and stuff =D

  • @PKFacade
    @PKFacade10 жыл бұрын

    I download your tutorials to watch them later. They have been a great help. I come from a Python/Blender background; and learned some C++ in college, so this clicks so much. It is presented in an understandable and relevant way. It's difficult to get more than a dirty look out of me for a response, but I'd like to thank you for these videos.

  • @ytsjcuser
    @ytsjcuser9 жыл бұрын

    I think I found a workaround for the "z-axis" drift that is occurring during movement. It has to do with the amount of "surface contact" between the floor's box collider and the player's box collider. Because the box collider for the player is the same size as the box, the entire bottom surface of the box (or it's collider) is in constant contact with the floor (or it's collider). This causes the physics engine to generate, what seems to be, random friction points along the two surfaces. In turn this causes the drifting. I've noticed that the drifting isn't always in a constant direction. When the player crosses boundary lines of the floor when the floor is expanded to a larger size, it takes on a new "random" friction direction. Ok, so where's the workaround? I started playing with the player collider shape. When I made it a sphere collider (it defaults to the same size and center of the player) the drifting was virtually eliminated. But that posed another problem. When entering the maze the player's vertical edges would enter the maze walls until the sphere collided with the maze walls. This looked funny and it took more penetration into the goal before it registered the trigger (actually this was a nicer effect). In order to correct the interaction with everything else except the floor, I added another collider (a box collider). I set it's height to about half the height of the player box and left it's center alone. This provided the desired collision with the floor and the maze. However, I did have to up the drag on the rigidbody of the player to about 5 since it was only contacting the floor at one tangential point (theoretically). I hope this workaround is useful to you.

  • @J0rD4n9001

    @J0rD4n9001

    9 жыл бұрын

    Thanks for this.

  • @PabloEscobar-nj8hy
    @PabloEscobar-nj8hy7 жыл бұрын

    Is c# a good language for developing simple games? I'm currently studying c# in school after learning Java last semester and find it a lot easier! What language do you recommend I expand my knowledge on?

  • @PabloEscobar-nj8hy

    @PabloEscobar-nj8hy

    7 жыл бұрын

    +Harry Fielding post what?

  • @PabloEscobar-nj8hy

    @PabloEscobar-nj8hy

    7 жыл бұрын

    +Harry Fielding nah wasn't me and thanks :)

  • @_jadonbrown
    @_jadonbrown10 жыл бұрын

    I'd like to apologize for not giving feedback yet, I am enjoying your tutorials thoroughly. They are such a useful tool to learn Unity on! Thank you so much sir!

  • @Zero86Sk
    @Zero86Sk9 жыл бұрын

    I just started working with unity, i have no programing knowlage what so ever and your vidoes and explenations are so awesome. They really helped me alot.

  • @bobobo1993
    @bobobo19938 жыл бұрын

    Movement for Unity 5: using System.Collections; public class PlayerMovement : MonoBehaviour { public float moveSpeed; private Vector3 input; Rigidbody cubeMovement; private float maxSpeed = 5f; // Use this for initialization void Start () { cubeMovement = GetComponent(); } // Update is called once per frame void Update () { input = new Vector3(Input.GetAxisRaw("Horizontal"), 0, Input.GetAxisRaw("Vertical")); if(cubeMovement.velocity.magnitude { cubeMovement.AddForce(input * moveSpeed); } if(Input.GetKey(KeyCode.A)) { cubeMovement.AddForce(input * moveSpeed); } if(Input.GetKey(KeyCode.D)) { cubeMovement.AddForce(input * moveSpeed); } if(Input.GetKey(KeyCode.W)) { cubeMovement.AddForce(input * moveSpeed); } if(Input.GetKey(KeyCode.S)) { cubeMovement.AddForce(input * moveSpeed); } } } Note: cubeMovement = GetComponent(); replaces the Rigidbody.AddForce. Great Tut btw!

  • @bobobo1993

    @bobobo1993

    8 жыл бұрын

    ***** Thought so too but apparently not :C

  • @bradmarcotte6647

    @bradmarcotte6647

    8 жыл бұрын

    +marco koopman (Eviltoastey) it said there were inconsistent line endings. some are mac and some are windows

  • @tammyton

    @tammyton

    8 жыл бұрын

    +James Robbie It wasn't actually necessary for Marco add that many lines of code to make it work.

  • @Robsfund

    @Robsfund

    8 жыл бұрын

    +Marco koopman (Eviltoastey) Code doesnt work - sends cube tumbling around... whats the beef?

  • @BainneK10

    @BainneK10

    8 жыл бұрын

    +Marco koopman (Eviltoastey) omg u are a lifesaver, i was following the video to the letter and getting errors i hadn't a clue why, and den your comment's first line set me straight :P though i was wondering why i was missing a menu option he had....anyway i'm also brand new to scripting so i'd have no chance of writing that myself, thank you again :P

  • @MOOnLight2k
    @MOOnLight2k7 жыл бұрын

    If your cube didn't move after AddForce try to disable its gravity or just increase the moveSpeed.

  • @junaidijaz41

    @junaidijaz41

    7 жыл бұрын

    it works for me thnks a lot :)

  • @junaidijaz41

    @junaidijaz41

    7 жыл бұрын

    For me i change the position of player box for example little bit high from floor box

  • @MeroDN
    @MeroDN9 жыл бұрын

    Your voice is *AWESOME!!!* Best tutorial ever! Reilly helped me get started with Unity

  • @FreekHoekstra
    @FreekHoekstra9 жыл бұрын

    the gravity bug is due to the collision innacurracies of the basic vertex (thin plate) collision. basically it gets pushed away from the ground, with some innaccuracies. thank you very much for the nice and clear control scheme and clear tutorial, much appreciated :)

  • @TheFunChannel101
    @TheFunChannel1019 жыл бұрын

    I really love the game idea and I was wondering if I could make a full game out of it and distribute it if that is okay? I would like to implement some other features and services in the game.

  • @yotoprules9361

    @yotoprules9361

    9 жыл бұрын

    Don't see why not, its your own game! You just had some help making it. Do what ever you want with it, if you want say you had help from the maker of this tutorial.

  • @TheFunChannel101

    @TheFunChannel101

    9 жыл бұрын

    YOTOPRULES-youtube Okay thanks anways. And yes I will if I make it.

  • @CaptainShorty

    @CaptainShorty

    9 жыл бұрын

    JTechGaming tell me when released i want it!!!!!

  • @TheFunChannel101

    @TheFunChannel101

    9 жыл бұрын

    Captain Shorty sure. I'm gonna add leaderboards, in app purchases, achievements and more!

  • @CaptainShorty

    @CaptainShorty

    9 жыл бұрын

    JTechGaming tell me when its out

  • @nanuckdogg3338
    @nanuckdogg33388 жыл бұрын

    i got an error for "getAxis". Severity Code Description Project File Line Suppression State Error CS1061 'Vector3' does not contain a definition for 'GetAxis' and no extension method 'GetAxis' accepting a first argument of type 'Vector3' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharp C:\Users\NanuckDogg\Documents\tutorial\Assets\scripts\PlayeMovement.cs 16 Activecould someone help me pls?

  • @ImJedx

    @ImJedx

    6 жыл бұрын

    Capital I in input

  • @elfyn123
    @elfyn1239 жыл бұрын

    Hey Austin, I'm completely new to this, I know a few people who program, but I've never delved into it myself until recently. I stumbled upon this and I just wanted to say that this is awesome stuff. For me, one of the best ways for me is to just jump right in, and you help with that and teach along the way. Some of the stuff gets a little lost in the abyss at times, but definitely keep up the repetition, it allows the programming diction to stick in people's heads better (my head at the very least). Good job again!

  • @Blaze0xA
    @Blaze0xA8 жыл бұрын

    I learned so many things from this tutorial! Now I am almost finished with my own game called "Dodge the Cubes!"

  • @AATIFStudios
    @AATIFStudios10 жыл бұрын

    Do I need prior knowledge of programming before this?

  • @mauritsseelen914

    @mauritsseelen914

    10 жыл бұрын

    Yeah, some basic C# will defo help you if you want to start doing this.

  • @HazardEdit

    @HazardEdit

    10 жыл бұрын

    as Mau S said basic C# just to understand how it works. like the first 100 pages of a textbook. the rest doesnt matter because you dont use windows libs in there.

  • @ahkamn

    @ahkamn

    9 жыл бұрын

    ***** This guy did a C# course on his channel before that was made to introduce basic stuff before he did this game. Look through that, it will be really helpful

  • @vishrutgoyani8071

    @vishrutgoyani8071

    5 жыл бұрын

    Ofc...You need the knowledge of C and C++, after that...You need the basics of C# If you have no idea about C# then don't worry....You can find its tutorials on youtube....and then You need to understand that how C# is applied in unity. Good Luck...!

  • @gaming2bros
    @gaming2bros9 жыл бұрын

    Hi, I'm 13 years old and I'm thinking what kind of subjects should I take later on if I want to become a developer? I was just wandering :)

  • @Mr4Goosey

    @Mr4Goosey

    9 жыл бұрын

    Hey Kingkizz, honestly, it does not really matter that much. Grades and diplomas don't matter that much in the games industry, except for people who want to work at EA or alike, but if you look on their sites, in generally says (example): "Masterclass game design or equal working experience" as a requirement. The best thing you can do is just start learning and join projects as a programmer or so. Then again, you should know that Game Development is a lot of different things, not just programming ;) Hope this helped! V_R

  • @gaming2bros

    @gaming2bros

    9 жыл бұрын

    Ok yeah thanks, I thing starting now at a young age as well will help me with experiance

  • @drovijolt7735

    @drovijolt7735

    9 жыл бұрын

    Now to sell your identity!

  • @Mr4Goosey

    @Mr4Goosey

    9 жыл бұрын

    DrOvi Jolt Was that meant for me or for Kingkizz...? And what exactly did you mean by it...?

  • @drovijolt7735

    @drovijolt7735

    9 жыл бұрын

    I meant it for Kingkizz, and I was joking. At least that's as far as I know.

  • @RyanFaeScotland
    @RyanFaeScotland9 жыл бұрын

    Metal Gear Solid called, they want their VR Training levels back! Great looking tutorial guys, going to save this and watch after work.

  • @victoriasochivko8848
    @victoriasochivko88485 жыл бұрын

    Thanks a lot, as a complete beginner I find your tutorial mesmerizing, and really useful for creating your first game. Subscribed!

  • @b3jmedia524
    @b3jmedia5249 жыл бұрын

    Error: Assets/Scripts/PlayerMovement.cs(18,27): error CS0120: An object reference is required to access non-static member `UnityEngine.Rigidbody.AddForce(UnityEngine.Vector3, UnityEngine.ForceMode)' script: using UnityEngine; using System.Collections; public class PlayerMovement : MonoBehaviour { public float moveSpeed; private Vector3 input; // Use this for initialization void Start () { } // Update is called once per frame void Update () { input = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical")); Rigidbody.AddForce (input * moveSpeed); } }

  • @gonzalozardi8225

    @gonzalozardi8225

    9 жыл бұрын

    is rigidbody no Rigidbody

  • @janzimmer8136

    @janzimmer8136

    9 жыл бұрын

    ***** If you are using Unity 5, you will have to add it manually. Do like so: public GameObject other; Rigidbody rigidbody = other.getComponent(); rigidbody.AddForce(1, 1, 1); After that, remember to add the "Player" GameObject in the "Player Movement" script on the inspector. Else it won't work

  • @TheDimma4

    @TheDimma4

    9 жыл бұрын

    Jan Zimmer Well I also use unity 5 and I also have the same problem but which part of the code do I add that code into (hopefully that made sense)

  • @janzimmer8136

    @janzimmer8136

    9 жыл бұрын

    Put it at the beginning of your Update() method. Here's my whole code :) : using UnityEngine; using System.Collections; public class PlayerMovement : MonoBehaviour { public float moveSpeed; private float maxSpeed = 5f; private Vector3 input; public GameObject other; // Use this for initialization void Start () { } // Update is called once per frame void Update () { Rigidbody rigidbody = other.GetComponent(); input = new Vector3 (Input.GetAxisRaw ("Horizontal"), 0, Input.GetAxisRaw ("Vertical")); if (rigidbody.velocity.magnitude { rigidbody.AddForce(input * moveSpeed); } } }

  • @TheDimma4

    @TheDimma4

    9 жыл бұрын

    Jan Zimmer Thank you very much :D

  • @mirrorman4558
    @mirrorman45588 жыл бұрын

    Part 1 450k views, part 2 70k views. lol.

  • @mirrorman4558

    @mirrorman4558

    8 жыл бұрын

    Wanted to make Call Of Duty but didn't work out.

  • @badmalik6882

    @badmalik6882

    8 жыл бұрын

    +StraightUpGaming You can't make COD as it requires almost 200 to 300 people as it very complex and vast

  • @mirrorman4558

    @mirrorman4558

    8 жыл бұрын

    Malik Bilal Did you read my comment, that's what I said.

  • @aboody006

    @aboody006

    8 жыл бұрын

    +Malik Bilal Yes you can.. You don't even need a prebuilt engine for it. Programming is not hard at all.

  • @mirrorman4558

    @mirrorman4558

    8 жыл бұрын

    ***** You can't make a COD in your lifetime.

  • @Ferenc-Racz
    @Ferenc-Racz3 жыл бұрын

    I just met your videos first time now on youtube. What a great videos! I subscribed right away. Thank you!

  • @riki6645
    @riki66459 жыл бұрын

    Amazing video series, explain everything so well! In-depth but not wasteful with time!

  • @somedude2577
    @somedude25777 жыл бұрын

    my pc crashed when i told the cube to move

  • @CTMKD

    @CTMKD

    6 жыл бұрын

    lol

  • @cimpo327

    @cimpo327

    6 жыл бұрын

    i thought im the only one

  • @mathew562

    @mathew562

    6 жыл бұрын

    is your pc good or is it a potato

  • @xxnotmuchxx

    @xxnotmuchxx

    5 жыл бұрын

    Thats nothing. My computer committed suicide.

  • @MAXAMMO1
    @MAXAMMO18 жыл бұрын

    i want that game

  • @RyanFaeScotland
    @RyanFaeScotland9 жыл бұрын

    This tutorial is exactly what I was looking for. I'm coming into Unity as a C# programmer and there were a lot of things I wasn't sure about such as how to make references to other components in a GameObject (26:30) so it is good to see you have a similar sort of background. Still a lot of difference between the 2 that haven't quite 'clicked' yet but I think your series is going to be very helpful. Thanks for sharing.

  • @RyanFaeScotland

    @RyanFaeScotland

    9 жыл бұрын

    RyanFaeScotland Hey look, it's me 2 months ago! Wow I've came on so much from then hehe.

  • @RyanFaeScotland

    @RyanFaeScotland

    11 ай бұрын

    8 years man, wow.

  • @GamerBoyRobby
    @GamerBoyRobby8 жыл бұрын

    hey man, i have seen many videos involving movement which were good and helped me make it work but the way you done your tutorial helped me understand the code a bit better and it helped me do a simaler thing in a 2d project so thx man and ill defo be watching the other tutorials

  • @Commanderrabbit
    @Commanderrabbit8 жыл бұрын

    everything is fine but I cant move I used GetComponent().AddForce(input * moveSpeed); but still wont move

  • @Caleb-bp8bm

    @Caleb-bp8bm

    8 жыл бұрын

    same

  • @tournevis1855

    @tournevis1855

    8 жыл бұрын

    same

  • @funkygaming8300

    @funkygaming8300

    7 жыл бұрын

    try to use unity 5.0.2

  • @IshartMEself

    @IshartMEself

    7 жыл бұрын

    Change the Rigid body above to the getcomponent code

  • @xrealx369

    @xrealx369

    7 жыл бұрын

    can u explain more Mortycon?

  • @michaelwarwavesyn9391
    @michaelwarwavesyn93917 жыл бұрын

    rigidbody.velocity.magnitude problems?? Use this: GetComponent().velocity.magnitude

  • @egardoc5076

    @egardoc5076

    7 жыл бұрын

    Thankyou so much, thats work for me,, thankyou

  • @TheGamerPro57

    @TheGamerPro57

    7 жыл бұрын

    Thank you! :)

  • @egardoc5076

    @egardoc5076

    7 жыл бұрын

    halo maarv, I can't continue at part 6 . if you can do it at part 6. please join the script with me okay. thankyou . sorry for bad English

  • @creepcostgaming4910

    @creepcostgaming4910

    6 жыл бұрын

    thx

  • @chrisought2627

    @chrisought2627

    6 жыл бұрын

    Where do we put it?

  • @beebstergames7348
    @beebstergames73485 жыл бұрын

    This was an excellent beginning tutorial. Ultimately, the entire series was very inspiring and led me to start my own Maze type game. Thanks for the work you did on the video.

  • @CringeMaster64

    @CringeMaster64

    5 жыл бұрын

    does it work in 2019

  • @beebstergames7348

    @beebstergames7348

    5 жыл бұрын

    @@CringeMaster64 The software I started works on the most recent version of Unity. It just imported no problem.

  • @___Noah
    @___Noah9 жыл бұрын

    The quality of the voice recording really sets this tutorial apart from the rest. Sounds great and is very easy to pay attention to. Thanks!

  • @victoriagomez3608
    @victoriagomez36086 жыл бұрын

    void Update () { input = new Vector3(Input.GetAxis ("Horizontal"), 0, Input.GetAxisRaw ("Vertical")); GetComponent().AddForce(input * maxSpeed); { GetComponent().AddForce(input * moveSpeed); } } } hope this helps!

  • @tiagosandoval6168

    @tiagosandoval6168

    3 жыл бұрын

    Thats what I was searching for!

  • @tellik2672
    @tellik26723 жыл бұрын

    your welcome using System.Collections; using System.Collections.Generic; using UnityEngine; public class Movment : MonoBehaviour { public float moveSpeed; private Vector3 input; private float maxSpeed = 5f; // Start is called before the first frame update void Start() { } void Update() { input = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical")); GetComponent().AddForce(input * moveSpeed); } }

  • @Kmh-pl9ze

    @Kmh-pl9ze

    2 жыл бұрын

    Thank you so much

  • @tellik2672

    @tellik2672

    2 жыл бұрын

    @@Kmh-pl9ze Your welcome

  • @stackflow4007
    @stackflow40079 жыл бұрын

    Now going to second step. One of the best lessons on youtube.

  • @berbm
    @berbm10 жыл бұрын

    The word is slippery and keep up! Im finally learning Unity, thanks to you man. you explain everything in detail and I love it, +1 SUb!

  • @DavidMauas
    @DavidMauas6 жыл бұрын

    this tutorial seems good - but it is simply filled with irrelevant stuff... minutes of color choosing... come on. make it grayscale and get to the point :/

  • @eroc121
    @eroc12110 жыл бұрын

    I really enjoyed this series! Austin, you were very clear and concise and I appreciated your thoroughness in regards to explaining every little detailed step along the way to help us beginners. One thing I would love to know is how to get an enemy AI to seemingly move randomly through a maze. Not sure if this would be done with a waypoint system where the enemy could randomly choose which nodes to walk to, if it would be some sort of raycasting wall collision detection, or a navmesh function? I would love to learn how to do this without the use of plugins. If anyone knows, I am all ears. Thanks!

  • @fredykasper1941
    @fredykasper19417 жыл бұрын

    I made some simple textures for everything up ahead the floor, player, enemy and the walls and didnt really expect to understand of this tutorial as much as I did. :D Thanks. ^-^

  • @Patricebrouh
    @Patricebrouh6 жыл бұрын

    Any beginner must follow these courses first. This course is well explained.

  • @michaelmagallanes8959
    @michaelmagallanes895910 жыл бұрын

    Dude totally helped me out step by step visual you rock thanx I'll be watching more of your vids

  • @user-yv3jo1lh6u
    @user-yv3jo1lh6u7 жыл бұрын

    Thank you, Because of you I have a direction to create a game. keep doing what you are doing!!!

  • @jellybabiesarecool4657
    @jellybabiesarecool46578 жыл бұрын

    Thank you. I'm looking forward to watching the next part.

  • @HATL201
    @HATL2019 жыл бұрын

    Just amazing! Thank you so much for these tutorials , god bless you!

  • @cakegamesstudios8497
    @cakegamesstudios84978 жыл бұрын

    This is a fun one! Great job :) Love tutorials like this.

  • @Grand_Alchemist
    @Grand_Alchemist9 жыл бұрын

    If your x Axis is affecting the z Axis (and vice versa), try using a sphere or capsule collider instead of a box collider. I think the corner of the box collider tends to stick to the floor, which causes the rigidbody to move in the direction the corner is facing.

  • @nobytes2
    @nobytes28 жыл бұрын

    Just FYI that little bug when moving X, also moves Y that doesn't happen on the latest Unity 5. Great tutorials by the way!! Love the detailed explanations, and the exploring along the way.

  • @augustmedicine
    @augustmedicine7 жыл бұрын

    This had gotten good and I know it is back-order but I think it's the first introduction tutorial, yeah I'll subscribe.

  • @ramisohail
    @ramisohail10 жыл бұрын

    pretty cool dude I'm loving the course so far

  • @_jadonbrown
    @_jadonbrown10 жыл бұрын

    Also, it is your Z axis that's supposed to move as Y makes it go up and down. X is horizontal movement and is perfectly assigned. To move "vertically" the depth of the object is changed (Z).

  • @hadyhesham1203
    @hadyhesham12039 жыл бұрын

    That series was really good ! Thanks

  • @farazahmed3081
    @farazahmed30818 жыл бұрын

    i love to watch your tutorials thanks man :)

  • @raitai3868
    @raitai38689 жыл бұрын

    Dude I just want to thank you, for your hard and great work! (:

  • @MrPoonmoon
    @MrPoonmoon7 жыл бұрын

    Great Tut, thank you. The case sensitive input Input threw me at first and I couldnt follow how it could work. Then I realised our own declared 'input' was clawing a stuff from the bigknob Unity 'Input' class.

  • @blind_neighbourhoodNerd
    @blind_neighbourhoodNerd9 жыл бұрын

    Awesome tutorial man. Really appreciated. Cheers

  • @BobTheZealot
    @BobTheZealot9 жыл бұрын

    Awful? AwfulMedia is the best media ever!

  • @pascalaverbeck1816
    @pascalaverbeck18169 жыл бұрын

    Hey, first of all, thanks for that awesome tutorials. They helped me alot :). And if somebody wants to reduce the "gravity - move - bug" add this under "input = new Vector3...." : if (input.x != 0 || input.z != 0) // if player does not press anything { rigidbody.useGravity = false; // set gravity to false } else if (rigidbody.velocity.magnitude { rigidbody.useGravity = true; // set gravity to true } /* Operator != means : does not equal to.. Operator || means : "or" example : if( x == 0 || x != 1) { ... } means : if x is equal to 0 or " || " x is not equal " != " to 1 { do : ..... } */ Edit : Here's my Code, remember to change public class Move : MonoBehaviour to public class "Name of your Script without quotes" : MonoBehaviour pastebin.com/amcewBNi

  • @rubenedra
    @rubenedra10 жыл бұрын

    Looking forward to the next part!

  • @grazergames
    @grazergames9 жыл бұрын

    Ur great at these tutorials because normally it would be 10 mins of people rushing to show u stuff

  • @SwarnimArun
    @SwarnimArun10 жыл бұрын

    thanks bro i have download unity a week earlier i m a complete noob.......... But ur vid helped a lot

  • @Bennethp
    @Bennethp8 жыл бұрын

    1+ subscriber , these tutorials are great ! added it to my favorite list

  • @six3sin
    @six3sin6 жыл бұрын

    Thanks a lot man this is helping me so much (subbed)

  • @CodeWithMilk
    @CodeWithMilk8 жыл бұрын

    Sou brasileiro haha, muito bom este tutorial, aprendi muito ! (I am Brazilian haha, very good this tutorial , I learned a lot !)

  • @amilismurfs
    @amilismurfs7 жыл бұрын

    youre explaining it really well :D gread job

  • @fabitoselajuega
    @fabitoselajuega9 жыл бұрын

    Awesome video. I really helped me!

  • @lilmas2479
    @lilmas24798 жыл бұрын

    i still have a little trouble coding but i will get better as i go on... Its very fun to do!

  • @_-__-_6355
    @_-__-_63557 жыл бұрын

    Can't wait to improve my skills! Nice video. :)

  • @billysimpson8436
    @billysimpson843610 жыл бұрын

    I actually went through paid tutorials but yours is much better, keep doing what your doing :) would love to see you make an rpg like diablo or wow :)

  • @zodiac3042
    @zodiac30427 жыл бұрын

    You are awesome. good tutorial. I hope all who watched this learn from you and not just copy what you made in the tutorial.video liked and subscribed. :)

  • @YourRelaxingMusicChannel
    @YourRelaxingMusicChannel3 жыл бұрын

    A nice game concept for a starter.

  • @catescdc8
    @catescdc810 жыл бұрын

    Dude I really like these tuts! God bless!!!!!!

  • @WawaxClub
    @WawaxClub10 жыл бұрын

    I'm french and is very cool tutorial! :)

  • @ashtonskeyboards381
    @ashtonskeyboards3816 жыл бұрын

    for the movement of the cube he made it a little more complicated than it has to be for new users you can just use this its bassically the same thing but without the rigid body and vector 3 but using a float for the speed using System.Collections; using System.Collections.Generic; using UnityEngine; public class playerMovement : MonoBehaviour { public float movespeed; void Start () { movespeed = 7f; } void Update () { transform.Translate (movespeed*Input.GetAxis("Horizontal")*Time.deltaTime,0f,movespeed*Input.GetAxis("Vertical")*Time.deltaTime); } }

  • @kvwowv

    @kvwowv

    6 жыл бұрын

    thank you for this

  • @kevingorzek

    @kevingorzek

    5 жыл бұрын

    This works as of 4JUL18. Thanks.

  • @nickhaydin2659
    @nickhaydin26598 жыл бұрын

    hey sorry im new to using unity, but how do you get the camera view to be there constantly? it looks very useful but i cant tell how to get it there

  • @centralrecords77
    @centralrecords7710 жыл бұрын

    You've helped me out! Thanks dude, It's better to turn the 1st directional light to white. I guess...

  • @engiuser
    @engiuser10 жыл бұрын

    There is no problem with Z if it's still the case... Look at your coordinate system gizmo. Y pointing up, that is what you "locked" in your equation. So your movement is in XZ plane, thats why X and Z coordinates are changing... Hope explained good. Very good tutorial for beginners. Thanks a lot!

  • @BrianLewisdev
    @BrianLewisdev10 жыл бұрын

    I must say, your previous tutorials were very good. This one is a bit fast, I think. I could see how an inexperienced programmer would get lost and have to pause a bunch in these. My suggestion, for those less familiar with Unity... watch a bunch of the videos in succession and THEN go back and follow along. You will have less trouble keeping up, and everything will feel familiar. Otherwise, good job Austin. Keep it up. I'm a web developer looking to get into C# and Unity, and these tutorials have been just what the doctor ordered and the pace is just fine for me.. I'd recommend slowing down what you're doing a little bit for the less experienced.

  • @GameDevMadeEasy
    @GameDevMadeEasy9 жыл бұрын

    Found your series, very helpful for learning Unity. Thank you for taking the time to make this series. Any chance you have the project available for people to download?

  • @RyanFaeScotland

    @RyanFaeScotland

    9 жыл бұрын

    Jesco You can get it from his website but it is down just now. :(

  • @otovgaming8232
    @otovgaming82328 жыл бұрын

    thank you for this this is a great tutorial i am a fan

  • @patrickhuangcheng
    @patrickhuangcheng10 жыл бұрын

    Hi dude, nice tutorial for C# programming in U3D. Regarding to the weird movement of axis Z, is it possible to put a trigger that triggering the script in the video only after the box lands?