3D Survival Game Tutorial | Unity | Part 1: Getting Started & Player Movement

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 422

  • @stonerbob5122
    @stonerbob5122 5 หลายเดือนก่อน +138

    my bro had this tutorial going on for 2 years, never seen anyone put in more effort than this guy

    • @HieuVu-lo6st
      @HieuVu-lo6st 5 หลายเดือนก่อน +1

      you should consider another engine after Unity policy updating

    • @stonerbob5122
      @stonerbob5122 5 หลายเดือนก่อน +3

      @@HieuVu-lo6st im using unity just for the sake of following this person

    • @cutyfttyggtffu7780
      @cutyfttyggtffu7780 5 หลายเดือนก่อน +1

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

    • @Corneliussanchez
      @Corneliussanchez 5 หลายเดือนก่อน +1

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

    • @Sirbozo
      @Sirbozo 3 หลายเดือนก่อน

      ae

  • @TenrousaAthena
    @TenrousaAthena ปีที่แล้ว +210

    You taught us while assuming we all have basic knowledge about Unity, but in my aspect, the course went well even with those who have zero experience in Unity. Your explanations are easy to understand and follow. Best Unity course I have ever watched so far.

    • @sylvershelley8595
      @sylvershelley8595 ปีที่แล้ว +1

      @pexels1479 cool?

    • @porridgegod42
      @porridgegod42 ปีที่แล้ว +4

      @@sylvershelley8595 actually it's not cool

    • @blacky6364
      @blacky6364 ปีที่แล้ว

      @@porridgegod42 its amazing

    • @MrIssa2021
      @MrIssa2021 11 หลายเดือนก่อน +3

      I gave the 69th like to your comment!

    • @eekka117
      @eekka117 7 หลายเดือนก่อน

      @@sylvershelley8595 yeah you're so funny bro

  • @AA_AmericanAbroad
    @AA_AmericanAbroad 9 หลายเดือนก่อน +15

    No way such quality content doesn't get tons of views. Starting these series and we'll see how it goes but scrolling through your channel videos did show how much quality content you produce

    • @cutyfttyggtffu7780
      @cutyfttyggtffu7780 5 หลายเดือนก่อน

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

  • @hunter-ci7dk
    @hunter-ci7dk 14 วันที่ผ่านมา

    "You're not an owl" 17:34 made me crack. Thank you so much, what a comprehensive, engaging and informative course you've made!!

  • @prats2834
    @prats2834 2 วันที่ผ่านมา

    Thank you so much for this series!
    You're one of those few youtubers, for whom I think "I'll give them money when I grow up"

  • @Boruebork
    @Boruebork 6 หลายเดือนก่อน +2

    I wanted to buy a unity course for 5000 Rubl, but then found your course, and left this idea. This is such good work, thanks for this diamond course!

  • @FepXBL
    @FepXBL 2 ปีที่แล้ว +18

    Excellent tutorial. I am definitely a beginner with game development, and I understood your explanations so easily. Thank you for making this for people like myself. Can't wait to continue learning from you.

    • @cutyfttyggtffu7780
      @cutyfttyggtffu7780 5 หลายเดือนก่อน

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

  • @Skellybonesjones
    @Skellybonesjones 11 หลายเดือนก่อน +2

    Thanks for making this bro, you are an absolute legend. Gonna try and get through all 40 vids.

  • @4n7h4r4x
    @4n7h4r4x 8 หลายเดือนก่อน +4

    the idea of me making a game started as a joke and now i hope and will actually try and make a game hahaha , thanks so much for all ur efforts and time , so far seems like the best tutorial i landed on

    • @Corneliussanchez
      @Corneliussanchez 5 หลายเดือนก่อน

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

    • @DolphinWantsPeace
      @DolphinWantsPeace 3 หลายเดือนก่อน

      how's it working out?

    • @frk3316
      @frk3316 3 หลายเดือนก่อน

      @@DolphinWantsPeace ooga booga

  • @Chrisvanrens
    @Chrisvanrens ปีที่แล้ว +17

    I would HIGHLY recommend to use Unity 2019.4 for this tutorial series. I started following this tutorial in Unity 2021 and I ran into various errors later on with the importing of the Terrain tools, skybox and landscape assets. I am now redoing this in 2019 and it is very easy to follow.

    • @nickcooper8995
      @nickcooper8995 ปีที่แล้ว

      Thanks

    • @JerielordPlays
      @JerielordPlays ปีที่แล้ว

      you should have told me im using 2022 ver

    • @FuzzyPlayz-pf5dm
      @FuzzyPlayz-pf5dm ปีที่แล้ว

      im using 2022.3...

    • @BRTMala
      @BRTMala ปีที่แล้ว

      TOO BAD IM IN WINDOWS 11

    • @Z767-c8h
      @Z767-c8h ปีที่แล้ว

      @@FuzzyPlayz-pf5dm any problems? im staring also with same version, is it going to work ?

  • @krutikagundecha783
    @krutikagundecha783 ปีที่แล้ว +4

    This is amazingly helpful even for a beginner! Didn't find anyone else who explained everything so well! Best Unity Tutorial on the internet... Thank you so much for your contribution!😄

    • @cutyfttyggtffu7780
      @cutyfttyggtffu7780 5 หลายเดือนก่อน

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

  • @Dr3ampunk
    @Dr3ampunk 6 หลายเดือนก่อน +1

    thank you for this series! you've helped new Developers like myself understand the language and the inner workings of the system more than you know.

  • @nexno27
    @nexno27 ปีที่แล้ว +8

    the tutorial is very good and you explain everything in the script very well. this is the best tutorial i have seen in a long time! keep up the good work

    • @Corneliussanchez
      @Corneliussanchez 5 หลายเดือนก่อน

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

  • @gsinghjay
    @gsinghjay หลายเดือนก่อน

    I just got to say, I'm doing game development for a class right now in uni and I have learned so much about the bear. Thank you so much.

  • @kendyrobot
    @kendyrobot 5 หลายเดือนก่อน

    Thanks so much for the tutorial. I finished Part 1, and everything worked great. I've tried a few tutorials, and this is the first one that works well. Appreciate all your hard work!!

  • @Stacey-r8p
    @Stacey-r8p ปีที่แล้ว +12

    Okay, so I had the same problem where I couldn't jump if I looked down. However, I did find a solution, probably a messy one, but so far it works:D. I changed the rotation in MouseMovement to 0 on X axis
    Added public Transform camera and then added the rotation for camera with x and y axes.
    Hooked up the camera to the slot in the script (to the right, where our components are)
    Then try it out and move the camera so it looks good. Now you can also see your feet! Or rather... One cylindrical foot:D.
    Anyway, if it breaks something later in the course, I will edit the comment.
    Thank you Mike for such an amazing course, I am having so much fun and it's the best course I have seen for Unity!

    • @Mikes-Code
      @Mikes-Code  ปีที่แล้ว +7

      Amazing. The player setup is indeed really basic and not ideal because that was not the focus of the series. There are so many player controllers out there, and I just provided a simple one. The problem with the jumping is because we always check if the GroundCheck is near the Ground to be able to jump. But when we rotate the player, and look down, the "legs" go up, and so does the GroundCheck, so it no longer detects the ground. Another easy solution will be to increase the GroundDistance value to something higher, this way even when you rotate, the groundCheck is still close to the ground.

    • @likey_dikey235
      @likey_dikey235 10 หลายเดือนก่อน +1

      Bro, the same problem I found and you described exactly what I’ve just wanted to do, but now I am sure that it is possible solution ;)
      In addition, I think that this solution is better than the easy one given by author, all regards. There is one more problem other than having no ability to jump looking in feet: so, imagine you jumped and immediately you are looking on your feet and pressing S button to go backwards, and because in fact your body is already rotated you will fly some time into sky looking on the ground. The same problem when you jump and look on the sky, by this you like a fly, I mean you increase your being in fly mode and you increase the jump height. That is not good at all. And that is serious problem in perspective. So the main problem is rotating of the player capsule itself, because it’s position defines where axis are located, and these axis defines our movement. Also it may cause shadow problems in future.
      So, as I said, I have found that the best (for now) and native solution in that case is solution with simulation of rotation of the head by the applying rotation to the camera transformation.

    • @iyorguiflorez4041
      @iyorguiflorez4041 3 หลายเดือนก่อน

      So its 2024 but I just started this tutorial and also starting learning game dev. I found another solution, I added a sphere as a child of the cylinder (like a head) and attached the MouseMovement script and the main camera to it instead to player directly. probably also not the best solution but it works

    • @williamhermansente2252
      @williamhermansente2252 2 หลายเดือนก่อน

      I simply made 2 scrips. One for the rotation of looking left and right for the player. and one for looking up and down for the camera. that pretty much solves all the issues. you cant fly, you dont fall over when looking down or up and you can jump and walk forward while looking up or down. Only issue is that it is very unproffesional i bet. But it works for me and i am the most beginner of begginers in coding and unity. Hoped this helped

  • @ryeoma
    @ryeoma ปีที่แล้ว +2

    even as a begginer, it was very easy to understand. thank you!

  • @josephverbrugge4669
    @josephverbrugge4669 2 ปีที่แล้ว +3

    Amazing video, way better than bigger TH-camrs game tutorials

  • @domanzelmo9425
    @domanzelmo9425 2 ปีที่แล้ว +11

    Fantastic tutorial, keep up the good work!

    • @Corneliussanchez
      @Corneliussanchez 5 หลายเดือนก่อน

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

  • @RicardoSanchez-es5wl
    @RicardoSanchez-es5wl 10 หลายเดือนก่อน

    These tutorials are the best I’ve ever seen. You are a great instructor!

  • @Mikes-Code
    @Mikes-Code  11 หลายเดือนก่อน +29

    Hey, there seems to be an ongoing problem with the Pastebin website itself. However, this should not prevent you from following the tutorial because I am showing all of the scripts in the tutorial. So you can simply copy it from the video.
    I will try to find a better solution when I have time, because Pastebin seems to be down a lot.

    • @slayer-oi2kw
      @slayer-oi2kw 11 หลายเดือนก่อน +2

      exactly what i needed wow thank you so much

    • @WhiteWolfysGameVOD
      @WhiteWolfysGameVOD 9 หลายเดือนก่อน

      Hmm why not using a github repo for this tutorial?

    • @jotarosgaming7761
      @jotarosgaming7761 8 หลายเดือนก่อน +2

      Maybe using github can make it easier

    • @spiritofnature603
      @spiritofnature603 7 หลายเดือนก่อน +2

      ground layer doesn't work and doesn't jump

    • @BadApple-um7vb
      @BadApple-um7vb 6 หลายเดือนก่อน +1

      you should use gist instead

  • @hypereclipse4015
    @hypereclipse4015 2 ปีที่แล้ว +5

    Wow you deserve more subs! I understood this video so well! Great Job 👍👍

  • @QsPracticalNonsense
    @QsPracticalNonsense ปีที่แล้ว +12

    I found the solution for those of you who might be wondering why you can't jump! Select your player and go to your (transition) "Y" value, this has to be less than your (script) "Ground Distance" value!

    • @p.rasmitadora4731
      @p.rasmitadora4731 ปีที่แล้ว

      Thanks
      Though I just tried once and went to comments

    • @QsPracticalNonsense
      @QsPracticalNonsense ปีที่แล้ว

      @@p.rasmitadora4731 This worked for me though some people were having a separate issue, some have said later in the series there is a type of clarification. I did not catch that clarification lol

    • @xbrandon
      @xbrandon ปีที่แล้ว

      i don't see a transition Y value only position , rotation and scale

    • @GaryParkin
      @GaryParkin ปีที่แล้ว +1

      @@xbrandonHe meant to say Y position. Mine is set at 2.5 which brings the player off the ground a bit. That's normal for starting first person games.

    • @richardlonigro4178
      @richardlonigro4178 ปีที่แล้ว +1

      thanks for posting this! helped me out I was having this issue. fixed now.

  • @madisonmutlowoke2491
    @madisonmutlowoke2491 11 หลายเดือนก่อน

    thank you so much for this, you explain it so well and really show everything in detail so we really can understand what were doing and why we do it. I'm gunna keep watching all your videos they are amazing

  • @FakuaBlock
    @FakuaBlock ปีที่แล้ว +1

    You should be getting paid for this, some excellent tutoring. I must admit the maths of the stuff does boggle my brain, but if it isn't something that I'd need to understand fully well... I won't complain.

  • @codywilliamson1323
    @codywilliamson1323 4 หลายเดือนก่อน

    I like how this guy puts all the details in

  • @splashbat2486
    @splashbat2486 ปีที่แล้ว +1

    You're just a legend keep it up:)
    Love your Explanations

  • @TheGammingDonuts
    @TheGammingDonuts 2 ปีที่แล้ว +3

    Great tutorial ! clear explanations and everything makes sense

  • @AyushK-mq5dz
    @AyushK-mq5dz 2 ปีที่แล้ว +1

    Very Great and Helpful tutorial for all stages from advanced to Beginers

  • @alpmagirus
    @alpmagirus ปีที่แล้ว +4

    mouse input is actually frame independent but by putting Time.deltaTime you made it frame dependent

  • @icefox2853
    @icefox2853 11 หลายเดือนก่อน

    Such a nice explanation! I love it.

  • @GaryParkin
    @GaryParkin ปีที่แล้ว +4

    Thank you. A nice explanation of how the character movement works. Question please? Why did you use a cylinder, and not use a capsule? Also why not attach the camera movement script to the camera so the player's body doesn't move at weird angles? I'd think that would fix everyone's issue with jumping.
    I would think that if the z axis of the camera wasn't tied to the player and to the camera instead, the player could move forward and look left. BUT how would you then turn to a direction the camera was looking. An interesting challenge I'd think.
    Maybe attach the Y to the player but the X to the camera would alleviate the player body angle and still be facing in the right direction. Himmm.
    I'm new to Unity but not building games, so I'd like to know your reasoning please?

  • @DawkaLwG
    @DawkaLwG 2 ปีที่แล้ว +2

    Hey! Thank You so much for your tutorial, it's amazing!

  • @blackcomet0
    @blackcomet0 2 หลายเดือนก่อน

    i subscribed to this man because he put a lot of efforts🔥

  • @vanillaobjective
    @vanillaobjective 3 หลายเดือนก่อน

    Thank you so much for these videos, with your help I'm finally making my dream little project

  • @ByteBurst57
    @ByteBurst57 11 หลายเดือนก่อน +4

    I don't know if its because I'm using UNITY 2022 and the video is shown in 2019, but I cant get my character (sphere) to walk. Can someone help me out here?

    • @tomharris8650
      @tomharris8650 7 หลายเดือนก่อน

      Did you ever figure this out? Running into the same problem, I can look around but not move at all

    • @TOESOR
      @TOESOR 4 หลายเดือนก่อน +1

      @@tomharris8650 at the player movement controler has to be set to player(character controller)

    • @SYLVABOX
      @SYLVABOX 3 หลายเดือนก่อน

      @@TOESOR thx!

  • @sommerheiler3308
    @sommerheiler3308 ปีที่แล้ว +1

    THIS IS AMAZING ❤ MUCH LOVE BROTHAH

  • @lelufti
    @lelufti ปีที่แล้ว +1

    WOW, You're Amazing before this Video i dont know how about i use Unity and with Your Playlist i can make now my Own Survival Game!! Thank you very Much i subscribe now!

  • @TechTendanceXYZ
    @TechTendanceXYZ 5 หลายเดือนก่อน

    Thanks a lot, your tutorial is really clear ! I'll continue it ;)

  • @ssandzz
    @ssandzz 2 ปีที่แล้ว +2

    Really great explanations of the code

  • @AtomicDurpYT
    @AtomicDurpYT 6 หลายเดือนก่อน +3

    I have noticed that the character can not jump when looking up or down. Is this a problem with the position of the checksphere being a child?

    • @burakosmancelik1435
      @burakosmancelik1435 4 หลายเดือนก่อน +2

      I saw the problem is ground check object is at the bottom of our cylinder but when you look up or down your bottom goes up thus not checking the floor

  • @davidrynn
    @davidrynn 2 ปีที่แล้ว +2

    This is amazing. Thanks!

  • @quickmix-streammusic7019
    @quickmix-streammusic7019 7 หลายเดือนก่อน

    7:00 you read my mind lol, i was literally thinking "I want to learn how to code too" lol

  • @SalarianStudios
    @SalarianStudios ปีที่แล้ว +1

    Thank you so much i love your content!

  • @novac1
    @novac1 10 หลายเดือนก่อน +1

    i love you man, you are the best, i love you!

  • @SmartLearningAI
    @SmartLearningAI 7 หลายเดือนก่อน +1

    Tip: On the Player, Cylinder, Mesh Renderer, Lighting, Set Cast Shadows to Off

  • @eldengod9655
    @eldengod9655 5 หลายเดือนก่อน

    This is one of the best tutoria!

    • @zephrus2072
      @zephrus2072 19 วันที่ผ่านมา

      hi broo can you give the full project?

  • @unalfaruk
    @unalfaruk 7 หลายเดือนก่อน

    Hey Mike!
    Thanks for the playlist, that's really a good one. I'm kinda person who can learn in the lab/with the apps, this is exactly what I was looking for hitting the game development since I'm already developer and am familiar with different dev environments.
    In this video, I'd like to point a minor detail about CheckSphere command. I am not sure but I think your illustration about this function is not valid; the position of the GroundCheck object would be the center point of the cyclinder, and it's the radius, not distance, between the ground layer and GroundObject. If I'm mistaken, sorry about that, and I'd like to learn why :)
    Thanks for this super playlist again :)

  • @KILLEN-vt3wl
    @KILLEN-vt3wl หลายเดือนก่อน

    I found that at 10:28 ~ i was running into an issue that said "The variable groundCheck of PlayerMovement has not been assigned."

  • @rooxwastaken
    @rooxwastaken 10 หลายเดือนก่อน

    When I multiplied the sensitivity by TIme.deltaTime, it made it so my sensitivity would increase when looking at too many game objects. Looking into it someone said "Input.GetAxis(“Mouse [axis]”) gives you the amount of movement provided in the last frame. As a result, it’s already being scaled relative to your framerate" so removing Time.deltaTime fixed the issue :)

  • @MK_Dev_Team
    @MK_Dev_Team 16 วันที่ผ่านมา

    Hey im having trouble making the player jump i have done everything i can, i made the Ground layer on the Terrain, i have add the Ground Check to the player and even the Ground Mask

  • @potatocat2474
    @potatocat2474 หลายเดือนก่อน +1

    Hey but when i try and play it, my camera falls to the ground. how can i fix that?

  • @nei6387
    @nei6387 2 ปีที่แล้ว +2

    its like i am in spectator mode and i fly around also its like the scripts create there own camera so i can see the cylinder just standing there

  • @alphazero4102
    @alphazero4102 4 หลายเดือนก่อน +1

    I have some problems, the higher I look the higher my player jumps and walks really fast, If I look down I can only jump very low and I can only move very slow, if I look completely down my player won't move at all, do you know what the problem could be?

  • @Username-m5v
    @Username-m5v หลายเดือนก่อน +1

    Hey, does these codes still work that you linked in the description in 2024???

    • @Mikes-Code
      @Mikes-Code  หลายเดือนก่อน

      @@Username-m5v yes, everything should work fine. I'm monitoring these scripts.

    • @Username-m5v
      @Username-m5v หลายเดือนก่อน +1

      @ Ok

  • @Flycs_
    @Flycs_ 4 หลายเดือนก่อน +1

    i have a question how do i fix my player clipping into the floor and staying there?

  • @Biggiest_noob
    @Biggiest_noob 3 หลายเดือนก่อน

    5:24 the Visual stuio wont open and it says
    There is no spplication det to open the document "Player.Movement.cd".
    I am on macbook pro

  • @smokinjoe9415
    @smokinjoe9415 8 หลายเดือนก่อน +2

    You have a bug. At 35 minutes in you should normalize the Vector3 named move. You are using move as a direction, and it should be a unit vector.

  • @gillward5882
    @gillward5882 ปีที่แล้ว +1

    hey, while i was following this video when i hit play my player starts by looking at the ground for some reason can you please explain why would this be happening

  • @SapphirePS99
    @SapphirePS99 ปีที่แล้ว +1

    The Movement system tells me the error " Assets\Scripts\PlayerMovement.cs(13,5): error CS0246: The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?) " What have i done wrong?

    • @Mikes-Code
      @Mikes-Code  ปีที่แล้ว

      please copy the entire line of code where you have the vector, (line 13 of the MovementScript). paste it here so I can see what is the problem.

  • @Henning127
    @Henning127 ปีที่แล้ว +1

    its i good tutorial but i have one bug when i move right or left i am faster then forward or backward how can i fix that

  • @Heavenly-Frequencies
    @Heavenly-Frequencies 11 หลายเดือนก่อน

    Thank you this is really helpful! ☺

  • @wowstuff01
    @wowstuff01 ปีที่แล้ว

    This tutorial is really good and you explain the basics as well. so its perfectly fine for beginners.

  • @FYFTYNDIGITSLoF
    @FYFTYNDIGITSLoF 9 หลายเดือนก่อน

    Really Good Tutoriol. Thanks a lot

  • @oliver.a1943
    @oliver.a1943 2 หลายเดือนก่อน

    Hey! I watched the video, and followed the steps, but I can't jump when I am looking down (nor up). I know it is because the ground checker is following the player, and when I look down the cylinder tilts and the bottom isn't touching the ground anymore, but how do I fix that, so either the ground checker is stationary at the bottom, or that the cylinder doesn't tilt when I look up and down, just the camera, all help is welcome!? :)

  • @niculimmeier
    @niculimmeier ปีที่แล้ว

    im gonna put this straight. this game AMAZING! i got some basic knowledge now and i can start coding myself :D the only thing i would have wished is that you didnt make me copy a text and instead explained what the first code does :) thanks though

  • @official_vegeta123
    @official_vegeta123 ปีที่แล้ว

    underrated youtuber

  • @CaraDennis
    @CaraDennis 8 หลายเดือนก่อน

    I got a series of error messages after copy/paste codes stating it does not recognize several names. One example: Assets\Scripts\Player Movement.cs(1,31): error CS0246: The type or namespace name 'MonoBehaviour' could not be found (are you missing a using directive or an assembly reference?)

  • @unodos9297
    @unodos9297 3 หลายเดือนก่อน

    Completely underrated!

  • @AceMichigan1onYT
    @AceMichigan1onYT ปีที่แล้ว

    Dude is a legend thank you so much

  • @tylererickson3335
    @tylererickson3335 5 หลายเดือนก่อน

    I am currently having two problems. The first is that whenever you look up or down everything including the ground check rotates as well and leaves the ground preventing jumping. The second is that the movement is tied to the camera angle meaning it will try to move you up or down depending on the pitch. Is there a way to solve these problems?

  • @jakeforgey5378
    @jakeforgey5378 หลายเดือนก่อน

    Hey Mike, I'm rather late to this video, but any tips for someone who is using say Dinosaur or Quadrupedal or Bipedal creatures as the character model?

  • @Ryuu_Tatsuya70
    @Ryuu_Tatsuya70 5 หลายเดือนก่อน

    why did i get a (Assets\Scripts\MouseMovement.cs(37,9): error CS0103: The name 'controller' does not exist in the current context) message?

  • @dianasipitca3621
    @dianasipitca3621 2 ปีที่แล้ว +1

    Excellent tutorial😑😋

  • @shia9631
    @shia9631 3 หลายเดือนก่อน

    Totally random question. Bit on a journey with game dev. I implemented a raycast for ground checks is that a good way to approach things, or would it be performance heavy in the long run?
    Experience as a programmer, but not with Unity AT ALL!

    • @Mikes-Code
      @Mikes-Code  3 หลายเดือนก่อน

      @@shia9631 using a raycast to determin if the player is touching the ground, for things like jumping/flying is a common way to do it.
      A single raycast will not impact performance. If you had 1000 players then it may start to stack up, depending on the complexity of the scene.

  • @donaldfaulknor2149
    @donaldfaulknor2149 ปีที่แล้ว

    I don't know if it'll be discussed later, but if the cursor doesn't move, how would a player select objects or UI elements?

  • @Justin-ob7gb
    @Justin-ob7gb 3 หลายเดือนก่อน

    hello i have little problem i create layer Ground and I have created too GroundCheck and I drag it to player movement and my terain have layer Ground and ground mask I have too on Ground but I don't know how is it possible that I cant jump

  • @besnikkadriu8383
    @besnikkadriu8383 7 หลายเดือนก่อน

    Hello, I did it like in the video, but it won't let me walk with A forward or S back or jump with Space, it opens below, dontdestroyonload

  • @Cloonsey_
    @Cloonsey_ หลายเดือนก่อน

    for some reason, when I jump i fall down slowly and it doesn't accelerate. Any ideas how to fix that?

  • @ilovepowerwolf
    @ilovepowerwolf 10 หลายเดือนก่อน

    Thanks for everything.

  • @tim5749
    @tim5749 ปีที่แล้ว

    I followed every exact step as you, and when I put the camera under the player object, when I rotate the player, it only rotates the cylinder and not the camera. The camera just stays put. Any advice or help? Thank you!

  • @carlnattrass1243
    @carlnattrass1243 6 หลายเดือนก่อน

    As soon as I look up and down, the jump stops working. Something to do with not being grounded and the pivot of the player. Anyone got any ideas?

  • @JinxE740
    @JinxE740 11 หลายเดือนก่อน

    Dude i did the whole thing once, i stopped before the part i could jump then i closed my computer but don’t worry i saved the project. I come back and everything is deleted so i spend an hour re doing it but then the ground check was bugging and wouldn’t stop disappearing, then i fixed it. but this time im stuck in 3d like i see the cylinder moving from behind. THE CAMERA WINT EVEN FOLLOW IT. idk how i made it 3fps please help.

  • @GameStore-26
    @GameStore-26 3 หลายเดือนก่อน

    Thanks for 100 subscribers completed ❤🎉

  • @pyr0man1iac85
    @pyr0man1iac85 ปีที่แล้ว

    How do I lock the x rotation for the player? I can't jump when facing up or down.

  • @whydow3
    @whydow3 3 หลายเดือนก่อน

    Did everything you did, yet my character is not jumping, but when i press S it jumps (I checked its all set to space)

  • @MrZophiel
    @MrZophiel 3 หลายเดือนก่อน

    i have this problem that i can't jump more than couple of times
    can anyone tell me why?
    is the positioning of ground check is off or sth else?

  • @god_of_peanuts
    @god_of_peanuts ปีที่แล้ว +2

    I fixed my player character moving by itself by going to Edit -> Project Settings -> Input Manager, then removing the second Horizontal and the second Vertical which you should find around the middle of the list.

    • @anonydart5435
      @anonydart5435 2 หลายเดือนก่อน

      I have been trying to solve the sliding for days and could figure out what's wrong. Screw Allah or Jesus I am worshiping the god of peanuts now

  • @69NCZ
    @69NCZ 2 หลายเดือนก่อน

    Bro, why is it that during the scene the cylinder touches the ground, but when i play the game the cylinder flies? maybe i missed one thing from you, but i don't know where i missed it, because my english is not that good tbh

  • @toanpham4049
    @toanpham4049 7 หลายเดือนก่อน

    well i have a problem that if you look down. the position of the ground check will move with the player and i will can't jump anymore. so what i do is put the camera in the cylinder, throw the moseMovement to the cylinder and ... it work. btw thank for the videos. you are great.

  • @Philin-it
    @Philin-it ปีที่แล้ว

    This is a huge help. I'm currently working on an open world game like eso but uses for honors combat system. 😅 hopefully it works out.

    • @Salt_king1611
      @Salt_king1611 7 หลายเดือนก่อน

      Did it work out?

  • @mathiasderelle531
    @mathiasderelle531 ปีที่แล้ว +1

    Great Tutorial but I have an AZERTY Keyboard , do you know how to change the keybind on to z for forward and q for left

    • @imkushhh
      @imkushhh ปีที่แล้ว

      we do it in project settings, there should be a Input Manager setting in it

  • @nitrojames
    @nitrojames 5 หลายเดือนก่อน

    i did everything as said in the video, but the player starts tilting left when looking down and starts tilting right when looking up. i changed nothing in the scripts. any ideas how i can fix that?

  • @ofek827
    @ofek827 5 วันที่ผ่านมา

    yo how can I take the moues movement put only in to the camera and sync the plyer movant to the y rotation

    • @ofek827
      @ofek827 5 วันที่ผ่านมา

      or maybe only y rotation to the camera and then the player wont look weird

  • @TeoNguyen-jh6xx
    @TeoNguyen-jh6xx ปีที่แล้ว

    Items will automatically drop randomly on the map, such as dry tree branches and seashells, and will return when we pick up those items and continue walking. map area? I don't know how you can guide me

  • @GaryParkin
    @GaryParkin ปีที่แล้ว

    When the player jumps it feels like he hits the ground then slows for a half sec then hits again. Almost like he jumps hits a ledge then slips off. It's weird to explain.

  • @dudek1499
    @dudek1499 ปีที่แล้ว

    Hi I have error can you help me?
    UnassignedReferenceException: The variable controller of PlayerMovement has not been assigned.

  • @kekeandrei6773
    @kekeandrei6773 ปีที่แล้ว

    I am using Unity 2019, I have copy and pasted and follow your tutorial, when I drag the scripts into the player, and pres play, they are deleted and the player can not move anywere. Any sugestion?

  • @user-NguyenQuocDat
    @user-NguyenQuocDat 7 วันที่ผ่านมา

    can your character stay on different terrain or moving between it smoothly ?

  • @xandermassonov3731
    @xandermassonov3731 ปีที่แล้ว

    Why when i move character backward it doesn't jump? He moving with some shaking in this direction