Third Person Shooter (Unity Tutorial) Ep 1 Movement and Camera

Поделиться
HTML-код
  • Опубликовано: 12 ноя 2024

Комментарии • 190

  • @gaddgames
    @gaddgames  2 года назад +28

    where we run controller.Move(dir * moveSpeed * Time.deltaTime); change the dir to dir.normalized to stop the character walking faster in diagonal directions
    Also in the AimStateManager class I assumed the xAxis and yAxis.Update(Time.deltaTime) would be frame rate independent, this is not the case…
    To fix this simply change these variables to floats which can be private and also add a [SerializeField] float mouseSense;
    In the Update function replace the xAxis and yAxis.Update code with
    xAxis +=(Input.GetAxisRaw(“Mouse X”) * mouseSense);
    yAxis -=(Input.GetAxisRaw(“Mouse Y”) * mouseSense);
    yAxis = Mathf.Clamp(yAxis,-80,80)
    The rest of the code will stay the same

    • @dantie7186
      @dantie7186 2 года назад +1

      When I tried to change xAxis and yAxis in the update, I was told that I couldn't convert Cinemachine. AxisState to float because I was new to it and didn't quite understand it

    • @dantie7186
      @dantie7186 2 года назад

      If there is project source code, can you package it and send it to me for study? Thank you for a long time

    • @gaddgames
      @gaddgames  2 года назад +4

      @@dantie7186 drive.google.com/file/d/1C2LoLNtjQWVlKYYnEhN7RT9QSTvQRNjH/view
      Here is the project files for Ep 5 also in the second episode I show where I change the axis states to floats
      discord.gg/FGnPBHHQsZ here’s my discord if u need any help still

    • @mrfun3340
      @mrfun3340 2 года назад +1

      You can use Vector3.ClampMagnitude(dir, 1.0f)
      instead of dir.normalized
      cuz you will get some weird movement with dir.normalized

    • @eichel32
      @eichel32 2 года назад

      @@mrfun3340 thanks mate, this is what im looking for. i was using dir.normalized and it makes my player like walking on the ice

  • @mustafavurucu4944
    @mustafavurucu4944 Год назад +9

    This is the best tutorial i ve ever seen!! Thank you man for this serie!!!

  • @oZzWoLd2198
    @oZzWoLd2198 2 года назад +10

    Honestly mate I've been trying to get my own movement script and follow cam set up for like week now (I only started Unity 3 weeks ago and completely new to scripting) I've watched loaaads of youtube tuts and its either been too confusing or somethings messed up, whatever but this is literally the first video that I've been able to follow start to finish and actually understood what I've done by the end of it. Big thank you for these videos, subbed my guy.

    • @gaddgames
      @gaddgames  2 года назад +2

      Much love brother 🤙

    • @gaddgames
      @gaddgames  2 года назад +2

      These comments keep me going ❤️‍🔥

  • @marvindizon4917
    @marvindizon4917 2 года назад +6

    This is one of the best and the latest please continue tutorial! Thank you Gadd Games!

    • @gaddgames
      @gaddgames  2 года назад +4

      Thank you very much the next episode will be out today or tomorrow but was delayed because I was recording the wrong screen 🤦‍♂️

  • @patricki1422
    @patricki1422 5 месяцев назад +1

    Better than any tutorials i've seen! You're a legend!

    • @gaddgames
      @gaddgames  5 месяцев назад +1

      Thank you very much brother I am working on episode 17 as we speak

  • @honda02134
    @honda02134 10 месяцев назад +1

    You the best man explaining every single things

  • @aswinbaskaran607
    @aswinbaskaran607 2 года назад +7

    I'm following your tutorial for my open world game ! Excellent job -Thanks for segregation into chapters.

  • @48LOF
    @48LOF 6 месяцев назад +2

    should continue this to another playlist .. very good content thank you , big help !

    • @gaddgames
      @gaddgames  5 месяцев назад +1

      turn on the bell new videos coming soon, also I will be dropping the custom wheel collider and car controller asset for free and at some point will be adding cars to the project

  • @paulberry3359
    @paulberry3359 2 года назад +2

    Really enjoyed this first video, definitely would like this to flesh out into an entire series for a in depth Third Person Shooter Character. Subbed

    • @gaddgames
      @gaddgames  2 года назад +1

      Thank you, episode 5 will be out later today and a lot of people seem to be enjoying it so I will be continuing to add things like enemy AI and a full gameplay loop by the end.

  • @catboyrepublican2520
    @catboyrepublican2520 Год назад +7

    8:00 Just want to add, I've heard it's not good practice to have multiple CharacterController.Move calls in a single update loop as it could potentially cause some instability issues (plus it's really easy to fix). So my solution is to remove the move call from GetDirectionAndMove and Gravity, the in the Update loop after both those methods are called, create a Vector3 finalMove which is the sum of dir * moveSpeed and velocity, then call controller.Move(finalMove * Time.deltaTime)

  • @gaddgames
    @gaddgames  2 года назад +12

    I will cover jumping in the third video but if all you want is a simple character controller simply add a variable for jumpForce and in the update you can paste this code:
    if(IsGrounded()&&Input.getKeyDown(KeyCode.Space)) velocity.y += jumpForce;

    • @rainbowroad
      @rainbowroad Год назад

      also set the jumpforce to be a serialized variable so yoiu can tweak it in game

  • @cavemangamer9252
    @cavemangamer9252 2 года назад +2

    Thank you I am just starting

  • @wafwghwef4weag
    @wafwghwef4weag 2 года назад +3

    Thanks your tutorials are the best

  • @brosauce2814
    @brosauce2814 9 месяцев назад +2

    Hey, Really helpful video. Quick question, how would i disable mouse acceleration? it seems to be activated.

  • @H1D3_15
    @H1D3_15 Год назад +1

    i love this man holy

  • @RafaelFernandesKingRafa
    @RafaelFernandesKingRafa 2 года назад +1

    Incrível esse tutorial, funcionou de primeiro mesmo tendo o básico em inglês foi o melhor tutorial de todos, continue assim, está de parabéns

    • @gaddgames
      @gaddgames  2 года назад

      Merci beaucoup monsieur!

  • @mmar5896
    @mmar5896 6 месяцев назад +1

    Great tutorial man

  • @Duck_editz
    @Duck_editz 9 месяцев назад +1

    im getting the error ArgumentException: Input Axis vertical is not setup and also the error:NullreferenceException: object reference not set to an instance of an object movementstatemanager.OnDrawGizmos() how do you fix these?? also this is for the movementstatemanager script

  • @joeallred1125
    @joeallred1125 2 дня назад

    Do you have an updated AimStateManager Script for newer Cinemachine updates? I've been loving this tutorial but running into some issues particularly with the Axis. I put in the script you have (With changes "using Unity.Cinemachine;" instead of "using Cinemachine;) but AxisState is deprecated. I tried changing AxisState to InputAxis and get some errors I cant seem to get around. If I try to continue using the script as is, it still runs but when I run the game where you are at 14:08, x axis seems to work fine and the camera follows the mouse left to right but y axis doesnt seem to be registering. no up and down camera movement with all the same scripts as the vid. Are there any updates/fixes for this stuff? Thanks.

  • @nicolasportu
    @nicolasportu 2 года назад +1

    Outstanding!

  • @simonlu5141
    @simonlu5141 2 года назад +3

    oh my oh my! a new channel about Unity! Goodie!! thank you for the videos. Subscribe!!

  • @BoxocronFilms
    @BoxocronFilms 5 месяцев назад +1

    About the MovementStateManager, what software are you using for the scripting because for me it brought me to MS Word

    • @FlshChrnl
      @FlshChrnl 5 месяцев назад +1

      Microsoft Visual Studio

    • @gaddgames
      @gaddgames  5 месяцев назад

      I am using visual studio 2022 currently I believe in this video it was the 2019 version but either will work but id recommend 2022 as it is the latest

  • @blazexy5657
    @blazexy5657 7 месяцев назад +1

    The camera part didn't work until I moved the main cam in the camera follow

  • @Zulxxis
    @Zulxxis 7 месяцев назад +1

    This guy is so smart

    • @gaddgames
      @gaddgames  5 месяцев назад

      My friends would disagree :D

  • @ThaiPham-lw9um
    @ThaiPham-lw9um 2 месяца назад +1

    Can you help solve this error ? i dont know why but no error with 'Walk' and 'Crouch' and i stuck here.
    Error:
    \States\IdleState.cs(16,79): error CS1061: 'MovementStateManager' does not contain a definition for 'Run' and no accessible extension method 'Run' accepting a first argument of type 'MovementStateManager' could be found (are you missing a using directive or an assembly reference?)

    • @gaddgames
      @gaddgames  2 месяца назад +1

      Make sure the variable or the RunState Class in the movement state manager is of type MovementBaseState. It seems like you may have it as a MovementStateManager class

    • @ThaiPham-lw9um
      @ThaiPham-lw9um 2 месяца назад

      @@gaddgames Omg, it's my fault while coding, i typed "public RunState Rn"

  • @alleyesonme1432
    @alleyesonme1432 2 года назад +2

    Great job

  • @jesusbazaldua8651
    @jesusbazaldua8651 7 месяцев назад +2

    Super beginner question but how does he actually make it move was there a separate video for bindings? Is it with a controller or keyboard am lost honestly

    • @gaddgames
      @gaddgames  5 месяцев назад

      So Unity has basic inputs pre set up so the Horizontal and Vertical axis for the keyboard and mouse are there for you to use and change as you wish. hope this answers your question :)

  • @Amarxkmane
    @Amarxkmane Год назад +1

    Thank you so much bro!

  • @MuborRemix
    @MuborRemix 4 месяца назад +1

    Thanks u, my bro!!!!

    • @gaddgames
      @gaddgames  4 месяца назад +1

      Thank you too!

  • @clarkmeyer7211
    @clarkmeyer7211 2 года назад

    very cool. easy to follow.

  • @botaniccanon1596
    @botaniccanon1596 4 месяца назад +1

    Kool TPS Controller Could I use for commercial use?

    • @gaddgames
      @gaddgames  4 месяца назад

      Sure thing I quit my job yesterday so even more episodes coming soon

  • @Jul3kit
    @Jul3kit 6 месяцев назад +1

    What application did you use for the movement state manager? I can't open it because I don't have a compatible app

    • @gaddgames
      @gaddgames  5 месяцев назад

      I use visual studio 2022 at the moment sorry for the late response, keep it up buddy

  • @DarthSerul
    @DarthSerul 2 года назад +1

    Thank you!!

  • @TheHatsDude
    @TheHatsDude Год назад +1

    Hi, i followed all the instructions but i think is the new input system. Look when i put everything and go to check i have a problem that says : Cannot modify the return value of 'Transform.position' because it is not a variable
    Please i need help. :(

    • @gaddgames
      @gaddgames  Год назад +2

      You need transform with a lower case t

  • @VixBytesYT
    @VixBytesYT 3 месяца назад

    If I used someone else character controller script then what do I need to change to follow along with your next tutorials?

  • @LFC_DCB
    @LFC_DCB 6 месяцев назад +1

    I did everything right but for some reason, I can't move my camera around whenever im moving the player but the player does move in the camera forward. How do i fix this

    • @gaddgames
      @gaddgames  5 месяцев назад

      Do you still need any help brother?

    • @shashanktambe6341
      @shashanktambe6341 2 месяца назад

      @@gaddgames guess he doesnt need any help now

  • @SpaceIndie
    @SpaceIndie 2 года назад +1

    I followed your code for the Cinemachine, but it didn't pop up with the menu it did for you?

    • @gaddgames
      @gaddgames  2 года назад +2

      In the next video the axis states get replaced anyway lol

  • @foreignyard1720
    @foreignyard1720 Год назад

    Bro Great Video thank you so much,
    How did you get a deep knowledge of c#, and do you have a Discord?

  • @mr.giray1542
    @mr.giray1542 Год назад +1

    no matter what ı do it drops so fast what do ı do ?

  • @LegendsTap
    @LegendsTap 8 месяцев назад

    here in this if we want that camera is alwys in d back side of character and follows character when on swipe we change camera angle than character angle must be same as camera...how this possible?

  • @gabrielfavaro2665
    @gabrielfavaro2665 2 года назад +1

    tip, use GetAxisRaw for a more responsive movement

  • @Nvdtpu
    @Nvdtpu Год назад

    i keep getting the error Assets\MovementStateManager.cs(8,6): error CS0246: The type or namespace name 'hideinspectorAttribute' could not be found (are you missing a using directive or an assembly reference?) what to do?

  • @GamerGaruud
    @GamerGaruud 6 месяцев назад +1

    nothing is happening when I move my mouse around pls help

    • @gaddgames
      @gaddgames  5 месяцев назад

      Have you fixed this issue yet? If not send me a message on discord

    • @GamerGaruud
      @GamerGaruud 5 месяцев назад

      @@gaddgames I ended up with a brackeys video...dunno how but a code line solved it apparently lol

  • @Trunksxmp
    @Trunksxmp Год назад +1

    Crazy beginner question. I'm starting with this video and Googling loads at every step. After creating the Movement State Manager script your screen goes to the place you can type code. What coding program is that?

    • @Trunksxmp
      @Trunksxmp Год назад +1

      Scratch that, I figured it out from another RUclips video. But I'll keep the comment for the algo, if that helps? Thanks for the content!

    • @edwardgraham184
      @edwardgraham184 Год назад

      @@Trunksxmp Incase anyone else doesn't know its Microsoft visual studio.

  • @7y700-s1u
    @7y700-s1u 9 месяцев назад

    Whenever I add the ground layer and set the layer mask to it, my capsule still snaps/falls really fast. Has anyone else had this issue? Im on a slightly newer version of unity 2022.3.8

  • @romankovalevich196
    @romankovalevich196 2 года назад

    Tell me where I could have messed up, everything works for me, only the inversion on the y axis, when I move the mouse up, the character looks down and vice versa

  • @therealmasterluke407
    @therealmasterluke407 8 месяцев назад

    can help me fix the issue that when evry time i click play its says compile errors need to be fixed or something anyways great tutorial!

  • @IJH-Music
    @IJH-Music 2 года назад +1

    Great tutorial!
    Use some compression/limiting for your audio. You are very quiet!

  • @_god_mode_6123
    @_god_mode_6123 Год назад

    please help me I keep on getting an error saying that the variable controller for movement state manager has not been assigned. I'm a beginner and I don't know how to solve this on my own and it wont let me play the game until I fix it. Please help!!!

  • @sahilgangurde4886
    @sahilgangurde4886 Год назад

    my mouse working opposite when i drag up camera faces down and vice versa any solution ??

    • @gaddgames
      @gaddgames  Год назад

      Make sure you invert the input by putting a - behind where you capture the vertical input from the mouse

  • @zaalty2795
    @zaalty2795 Год назад

    the camera always stays in the center of the screen it doesn't follow the player the code is correct i don't know why it doesn't work

  • @MaximCemencov
    @MaximCemencov 2 года назад +2

    Gadd Games are you planning to create your own discord server?

    • @gaddgames
      @gaddgames  2 года назад +1

      Discord link is somewhere on my RUclips banner

  • @shadowartz9968
    @shadowartz9968 Год назад

    Is there a way to make the character rotate only after the camera reaches a certain angle? Trying to recreate Transformers fall of cybertron controls or like Minecraft 3rd person where your player rotates after a certain point

  • @mr.bill4752
    @mr.bill4752 Год назад

    Anyone know how to controlee the CM virtual camera here with input from actionMap of new input system?

    • @IJH-Music
      @IJH-Music Год назад

      Have you found out how? I'm not sure how to, and I need help.

  • @sypnes
    @sypnes 2 года назад

    hide in inspector not visible help me sir

  • @Youraveragefnplayer
    @Youraveragefnplayer 9 месяцев назад +1

    The code doesnt work for me (movement)

  • @ahmetsatukbugrademirel2877
    @ahmetsatukbugrademirel2877 7 месяцев назад +1

    king king u are a king amk !!!!!!

    • @gaddgames
      @gaddgames  5 месяцев назад

      I'm but a mere peasant good sir

  • @leartmena6845
    @leartmena6845 Год назад

    Bro I'm unable to use Mouse X and Y. I did every step that you did but it dont work. please if you have any idea what i could do pleaaaasee say it to me. thanks

    • @gaddgames
      @gaddgames  Год назад

      Watch the second video it gets changed anyway

    • @leartmena6845
      @leartmena6845 Год назад

      @@gaddgames thanks mate

  • @yofty_1v99
    @yofty_1v99 9 месяцев назад

    cant get the jumping workinng

  • @e-brosanimations231
    @e-brosanimations231 Год назад +1

    I am 117th comment...
    MISTER CHEF

  • @hanadanefa7837
    @hanadanefa7837 2 года назад

    don't you have tutorial just like this series where you use the new input system?

    • @gaddgames
      @gaddgames  2 года назад

      I’m tempted to make a video on how to upgrade this project to the new Input system. But will probably continue the series with the old system due to simplicity

  • @samarth6937
    @samarth6937 Год назад

    It tells '*' cannot be used for vector3

  • @am7_992
    @am7_992 Год назад

    Does this tutorial work for FPS game?

  • @Davidgotbored
    @Davidgotbored Год назад

    i keep on getting errors that say Assets\MovementStateManager.cs(7,29): error CS1519: Invalid token '=' in class, record, struct, or interface member declaration

    • @Thatonegamers11459
      @Thatonegamers11459 2 месяца назад

      It can be you unity version

    • @Davidgotbored
      @Davidgotbored 2 месяца назад

      @@Thatonegamers11459 oh ok thanks I gave up like a year ago but that could be a good tip

    • @Davidgotbored
      @Davidgotbored 2 месяца назад

      @@Thatonegamers11459 so I’ll try again

    • @Thatonegamers11459
      @Thatonegamers11459 2 месяца назад

      @@Davidgotbored 🤣🤣 sorry

  • @prod.cap0
    @prod.cap0 2 года назад

    i typed in everything that was given to me and i keep getting the same 3 errors. someone please help😭
    edit; nvm i was able to get rid of them but got a new one. error cs0103L the name 'controller' does not exist in the current conect
    when should i do?

  • @ZotaEdits
    @ZotaEdits Год назад

    Theres something wrog with my code please help ive reviewed it so many times

  • @leonardocomposiçoes
    @leonardocomposiçoes Год назад

    create fps multiplayer series tutorial using photon pun 2 and mixamo animations please!

  • @macatacwarrior7204
    @macatacwarrior7204 Год назад

    how does one add jumping

    • @gaddgames
      @gaddgames  Год назад +1

      By carry on watching the series

  • @GamingBenchmarksBI
    @GamingBenchmarksBI 3 месяца назад

    Camera script doesn't work with Unity 6 at all, but good tutorial after all.

    • @gaddgames
      @gaddgames  3 месяца назад

      Thank you for reminding me I picked Unity back up after a few months break and saw they had a Unity 6 so I upgraded the project and realised the same thing so I will have to make a new video for the cinemachine update

  • @nbdsnipez5403
    @nbdsnipez5403 2 года назад +1

    hello im becoming an indie developer is it possible to change the model with my own?

    • @gaddgames
      @gaddgames  2 года назад +1

      Yes you can in the second episode which is out now I show you how to replace the model with the capsule and get the animations set up. Finally in the third episode I will be showing you how to write the code to change the animations depending if you are running, crouching or walking. If you have any questions feel free to message me on my discord which you can find on my website gadd.games

    • @gaddgames
      @gaddgames  2 года назад

      The discord link is in my links page on my website also make sure to read the pinned comments on this video. Thank you for watching!

  • @why9265
    @why9265 Год назад

    Hey Gadd, I followed every step of this video exactly but the character doesn't stop moving for a few more seconds even after I took my hands off the controls.
    Here's the code(If there's something that I did wrong, please tell me!):
    MovementStateManager.cs
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class MovementStateManager : MonoBehaviour
    {
    public float movespeed = 3;
    float hzInput, vInput;
    [HideInInspector] public Vector3 dir;
    CharacterController controller;
    [SerializeField] float groundYOffset;
    [SerializeField] LayerMask groundMask;
    Vector3 spherePos;
    [SerializeField] float gravity = -9.81f;
    Vector3 velocity;
    void Start()
    {
    controller = GetComponent();
    }
    void Update()
    {
    GetDirectionAndMove();
    Gravity();
    }
    void GetDirectionAndMove()
    {
    hzInput = Input.GetAxis("Horizontal");
    vInput = Input.GetAxis("Vertical");
    dir = transform.forward * vInput + transform.right * hzInput;
    controller.Move(dir.normalized * movespeed * Time.deltaTime);
    }
    bool IsGrounded()
    {
    spherePos = new Vector3(transform.position.x, transform.position.y - groundYOffset, transform.position.z);
    if (Physics.CheckSphere(spherePos, controller.radius - 0.05f, groundMask)) return true;
    return false;
    }
    void Gravity()
    {
    if (!IsGrounded()) velocity.y += gravity * Time.deltaTime;
    else if (velocity.y < 0) velocity.y = -2;
    controller.Move(velocity * Time.deltaTime);
    }
    private void OnDrawGizmos()
    {
    Gizmos.color = Color.red;
    Gizmos.DrawWireSphere(spherePos, controller.radius - 0.05f);
    }
    }

    • @Dominicn123
      @Dominicn123 Год назад

      anneyong, try this bro:
      public class MovementStateManager : MonoBehaviour
      {
      #region Movement
      public float currentMoveSpeed;
      public float walkSpeed = 1, walkBackSpeed = 1;
      public float runSpeed = 3, runBackSpeed = 3;
      public float crouchSpeed = 2, crouchBackSpeed = 1;
      [HideInInspector] public Vector3 dir;
      [HideInInspector] public float hzInput, vInput;
      CharacterController controller;
      #endregion
      [SerializeField]float groundYOffset;
      [SerializeField] LayerMask groundMask;
      Vector3 spherePos;
      [SerializeField] float gravity = -9.81f;
      Vector3 velocity;
      MovementBaseState currentState;
      public IdleState Idle = new IdleState();
      public WalkState Walk = new WalkState();
      public CrouchState Crouch = new CrouchState();
      public RunState Run = new RunState();
      [HideInInspector] public Animator anim;
      // Start is called before the first frame update
      void Start()
      {
      anim = GetComponentInChildren();
      controller = GetComponent();
      SwitchState(Idle);
      }
      // Update is called once per frame
      void Update()
      {
      GetDirectionAndMove();
      Gravity();
      anim.SetFloat("hzInput", hzInput);
      anim.SetFloat("vInput", vInput);
      currentState.UpdateState(this);
      }
      public void SwitchState(MovementBaseState state)
      {
      currentState = state;
      currentState.EnterState(this);
      }
      void GetDirectionAndMove()
      {
      hzInput = Input.GetAxis("Horizontal");
      vInput = Input.GetAxis("Vertical");
      dir = transform.forward * vInput + transform.right * hzInput;
      controller.Move(dir.normalized * currentMoveSpeed * Time.deltaTime);
      }
      bool IsGrounded()
      {
      spherePos = new Vector3(transform.position.x, transform.position.y - groundYOffset, transform.position.z);
      if (Physics.CheckSphere(spherePos, controller.radius - 0.05f, groundMask)) return true;
      return false;
      }
      void Gravity()
      {
      if(!IsGrounded()) velocity.y += gravity * Time.deltaTime;
      else if (velocity.y < 0) velocity.y = -2;
      controller.Move(velocity * Time.deltaTime);
      }
      private void OnDrawGizmos()
      {
      Gizmos.color = Color.red;
      Gizmos.DrawWireSphere(spherePos, controller.radius - 0.05f);
      }
      }

    • @why9265
      @why9265 Год назад

      @@Dominicn123 Thanks for the help! I really appreciate it!

  • @beanie.weanie
    @beanie.weanie 9 месяцев назад

    What do you use for the code?

  • @InvixYT
    @InvixYT 2 года назад

    You don't even have to make a ground check. The Unity CharacterController has it's build in controller.isGrounded. You can just check that with an if statement and handle the rest of the logic in there.

    • @gaddgames
      @gaddgames  2 года назад +1

      I didn’t know this but I did it the way I did it to make sure you can’t infinite jump up walls

  • @Gli_sck
    @Gli_sck 2 года назад

    why the MonoBehaviour is white and not blue? same for other things they are white not grey

    • @Gli_sck
      @Gli_sck 2 года назад

      asking bc the script isnt working without these

    • @gaddgames
      @gaddgames  2 года назад

      If you go on Unity and click file/project settings/ external tools. Do you have your IDE selected in the drop down?

    • @Gli_sck
      @Gli_sck 2 года назад

      @@gaddgames wait unity hub or the project?

    • @gaddgames
      @gaddgames  2 года назад

      @@Gli_sck when your in the project. If you still need help send me a message on discord and I can help you get it sorted

    • @Gli_sck
      @Gli_sck 2 года назад +1

      @@gaddgames oh i discovered how to fix that, thanks for replying you're a very good youtuber:)

  • @giddyhaddcock_gaming5396
    @giddyhaddcock_gaming5396 7 месяцев назад +1

    everything works ok apart from the movement it doesn't go in proper direction

    • @gaddgames
      @gaddgames  5 месяцев назад

      That was my mums favourite part of the video, in the future I am going to edit it less so I will show that I am no genius and it takes time, effort and persistence. I am still learning and always will be

  • @nathandobbyn8747
    @nathandobbyn8747 2 года назад +1

    Thanks for the tutorial, btw, i use rigidbody, so i can't follow 3/4 of the tutorial :(

    • @gaddgames
      @gaddgames  2 года назад

      Might have to make a rigid body movement tutorial 🤔

  • @body_jammer
    @body_jammer Месяц назад

    I HAVE A 22 COMPILLER ERRORS🤧🤧🤧
    Can someone sent a working code pls?

  • @alexanderzapp5834
    @alexanderzapp5834 25 дней назад

    Aus spaß macht sowas keiner kein verbrechen ohne das man was verdient !

  • @Franklinsbrother
    @Franklinsbrother Год назад +2

    Yet another tutorial that doesn't work (probably due to Unity's constant annoying updates). It wouldn't let me add a CineMachine Virtual Camera unless I parented it to an object on the hierarchy and it's symbol doesn't appear next to the main camera and it doesn't function. I'm so sick of unity's bullcrap.

    • @gaddgames
      @gaddgames  Год назад +3

      I’ll have a look into it and see if I can find a fix for you

    • @Franklinsbrother
      @Franklinsbrother Год назад +1

      @@gaddgames Never Mind, I got it to work! For some reason, if I selected it in the Component Tab from the tab, it would be grayed out and not selectable unless I parented it to an object in the hierarchy, in which case it wouldn't work. However, when I right-clicked the Hierarchy and selected Cinemachine and virtual camera from there, it worked just as you showed. Thank you for your attempted support regardless!

  • @clarkmeyer7211
    @clarkmeyer7211 2 года назад

    public float moveSpeed = 3f;
    [HideInInspector] public Vector3 dir;
    float hzInput, vInput;
    CharacterController controller;
    [SerializedField] float groundYOffset;
    [SerializedField] LayerMask groundMask;
    Vector3 spherePos;
    [SerializedField] float gravity =-9.81f;
    Vector3 velocity;
    only moveSpeed is showing in inspector. why?????

    • @gaddgames
      @gaddgames  2 года назад +1

      Serialize instead of Serialized

    • @gaddgames
      @gaddgames  2 года назад

      Go to file at the top left of Unity then preferences/ external tools, then select your IDE from the drop down menu then regenerate project files then it should make things easier to follow along with

    • @clarkmeyer7211
      @clarkmeyer7211 2 года назад

      @@gaddgames oh shit. lmfao thank you. Can't believe I did that. its My intellisense that seems to be screwing me over and I didn't look properly

    • @clarkmeyer7211
      @clarkmeyer7211 2 года назад

      @@gaddgames I did that now. its not that. there is something wrong with the assemblies not showing up for me for some reason. I had a fix for it but that doesn't seem to be an option for me sadly. do you have a discord?

    • @gaddgames
      @gaddgames  2 года назад

      Yeah there is a link to it on my channel banner thing

  • @therealhecker
    @therealhecker 2 года назад

    is this series suitable for beginners

    • @gaddgames
      @gaddgames  2 года назад

      I wouldn’t recommend for absolute beginners but definitely with a basic knowledge of unity you could follow along

    • @therealhecker
      @therealhecker 2 года назад

      @@gaddgames iam a absolute beginner which series shopuld i watch for unity (other than brackeys )i like to learn 3d stuff not 2d games

    • @gaddgames
      @gaddgames  2 года назад +1

      What I did to start learning was the create with code course on the Unity learn website was very helpful and simple to understand

  • @kriande
    @kriande Год назад

    Why do you not use rigibody??

  • @cybermeso3412
    @cybermeso3412 Год назад

    What language is he using

  • @H1D3_15
    @H1D3_15 Год назад +1

    i got some error that said:
    nullreferenceException: object reference not set to an instance of an object movementStateManager.OnDrawGizmos
    can someone help me

    • @gaddgames
      @gaddgames  Год назад +1

      Run the game and it will go away and when you have set it up just comment out the code and it will go away

  • @Ennygames22
    @Ennygames22 8 месяцев назад

    When im testing

  • @alexanderzapp5834
    @alexanderzapp5834 25 дней назад

    6 Jahre Bau wenn du in ein fremdes netzwerkt eindringst !! :)

  • @GamingTimesForever
    @GamingTimesForever 7 месяцев назад +1

    kam ni kitta :(

    • @gaddgames
      @gaddgames  5 месяцев назад

      何が問題ですか

  • @systemkey1
    @systemkey1 2 месяца назад

    why does unity take fucking forever to do anything

  • @BlueSky-bz9vn
    @BlueSky-bz9vn Год назад

    This video is not for beginner

  • @Ennygames22
    @Ennygames22 8 месяцев назад

    My character is not moving

  • @jonauthor1813
    @jonauthor1813 Год назад +1

    I dont understand why ur voice is low please before making any tutorial at least check your sound

  • @aaronhernandez5965
    @aaronhernandez5965 2 года назад

    NullReferenceException: Object reference not set to an instance of an object
    MovementStateManagement.OnDrawGizmos () (at Assets/MovementStateManagement.cs:60)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) i have this problem how i can fix

    • @akshat6174
      @akshat6174 Год назад

      did you get this fixed? pls help a fellow out if so

  • @Kapsuva81165
    @Kapsuva81165 4 месяца назад

    ay man im stuck at 14:00 i cant play bc it automaticly pauses the game and when i try to unpause it gives me an error saying: System.ArgumentException: Input Axis Mouse Y is not setup. can you help me out please?

    • @Kapsuva81165
      @Kapsuva81165 4 месяца назад +1

      nwm did it myself lol

    • @gaddgames
      @gaddgames  4 месяца назад

      @Kapsuva81165 good job 😁