Basic Third Person Character Controller in Unity - Unity C# Tutorial 2022

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

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

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

    Player Script:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class player : MonoBehaviour
    {
    public Animator playerAnim;
    public Rigidbody playerRigid;
    public float w_speed, wb_speed, olw_speed, rn_speed, ro_speed;
    public bool walking;
    public Transform playerTrans;


    void FixedUpdate(){
    if(Input.GetKey(KeyCode.W)){
    playerRigid.velocity = transform.forward * w_speed * Time.deltaTime;
    }
    if(Input.GetKey(KeyCode.S)){
    playerRigid.velocity = -transform.forward * wb_speed * Time.deltaTime;
    }
    }
    void Update(){
    if(Input.GetKeyDown(KeyCode.W)){
    playerAnim.SetTrigger("walk");
    playerAnim.ResetTrigger("idle");
    walking = true;
    //steps1.SetActive(true);
    }
    if(Input.GetKeyUp(KeyCode.W)){
    playerAnim.ResetTrigger("walk");
    playerAnim.SetTrigger("idle");
    walking = false;
    //steps1.SetActive(false);
    }
    if(Input.GetKeyDown(KeyCode.S)){
    playerAnim.SetTrigger("walkback");
    playerAnim.ResetTrigger("idle");
    //steps1.SetActive(true);
    }
    if(Input.GetKeyUp(KeyCode.S)){
    playerAnim.ResetTrigger("walkback");
    playerAnim.SetTrigger("idle");
    //steps1.SetActive(false);
    }
    if(Input.GetKey(KeyCode.A)){
    playerTrans.Rotate(0, -ro_speed * Time.deltaTime, 0);
    }
    if(Input.GetKey(KeyCode.D)){
    playerTrans.Rotate(0, ro_speed * Time.deltaTime, 0);
    }
    if(walking == true){
    if(Input.GetKeyDown(KeyCode.LeftShift)){
    //steps1.SetActive(false);
    //steps2.SetActive(true);
    w_speed = w_speed + rn_speed;
    playerAnim.SetTrigger("run");
    playerAnim.ResetTrigger("walk");
    }
    if(Input.GetKeyUp(KeyCode.LeftShift)){
    //steps1.SetActive(true);
    //steps2.SetActive(false);
    w_speed = olw_speed;
    playerAnim.ResetTrigger("run");
    playerAnim.SetTrigger("walk");
    }
    }
    }
    }
    Camera Script:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class camLookat : MonoBehaviour
    {
    public Transform player, cameraTrans;

    void Update(){
    cameraTrans.LookAt(player);
    }
    }

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

      I keep getting "Can't add script component 'Player' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.".

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

      @@NutshackVideos check if your public class name is same as script name

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

      @@tofue9506 Actually, I got the problem solved. Thanks!

    • @Enderking-pt4ux
      @Enderking-pt4ux 2 ปีที่แล้ว

      @@NutshackVideos how did you do, i got similars errors.

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

      I have a problem where my character just slides when I stop moving, could you help?

  • @nuc1earant
    @nuc1earant ปีที่แล้ว +19

    I just started leaning Unity and I did understand everything. Thanxxx

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

      same, good job

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

    Can you please make an updated version with jump and non tank controls plz i cant figure it out

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

    At 10:53 in the video when discussing the sprinting, I use "=!" As an "equal to" symbol when in reverse it actually means "doesn't equal to", I should've used "==", just wanted to correct myself there lol. This mistake has nothing to do with the code, just the text in the video I was using to explain what to do.

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

      that's what I kind of assumed but its thoughtful of you to clarify.

  • @GoobNoob
    @GoobNoob ปีที่แล้ว +9

    Good straightforward tutorial man. THank goodness. Also uploading the script in a comment like a champ!

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

    i have a question, when i press W or S my player run forward or backwards and thats good but when i release one of that keys my camera and player dont stop but keeps going forward or backwards in idle modus. Can you help me?

    • @Thirsty-88
      @Thirsty-88 ปีที่แล้ว

      same problem, did you fix?

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

      In this case you need to make sure you also put if function for release of W and S button and in that function put all vector3 parameters 0

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

      Try to make Rigidbody-Drag to 10

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

    Thank you so much! This helped me a lot in my unity 3d gamejam project

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

    The animations make it so he only runs on the spot and is stay still, instead of running the whole thing. How do I fix please?

  • @Anyub9
    @Anyub9 20 วันที่ผ่านมา +1

    can anyone help character not moving forward why

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

    Please, i need much help, I did everything like the video, but my character continues walking when I stop pressing W

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

    my character is not stopping. Please tell me the solution for this and also my character in moving on plane surface but on terrain (i mean on little bit distorted surface ) it is not walking properly

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

      pull the capsule up and and the leg of your model must be visible it can fix your problem

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

      set drag to 10

  • @checolan0652
    @checolan0652 ปีที่แล้ว +9

    I have a problem, my character stays in the air while I am pressing the keys for move, I do not know how I can fix that please help :(

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

      select the animations and use bake into pose
      and select original
      and apply

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

      ​@@abhisek3735how make this???

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

      Does your character still move it's just off the ground? If that's the case then I recommend editing your capsule collider. In the component it should say edit. Press that and edit where his feet are and make it smaller

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

      Or checking the groundcheck is right make sure that you have gravity applied also

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

    why do i get this error i dont know how to fix it:
    Assets\player.cs(1,14): error CS1022: Type or namespace definition, or end-of-file expected

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

      Same here, we need help

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

      @@josephreubenfab ye

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

      did you fix it?

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

      @@greennlvr
      using System.Collections;
      using System.Collections.Generic;
      using UnityEngine;
      public class Player : MonoBehaviour
      {
      public Animator playerAnim;
      public Rigidbody playerRigid;
      public float w_speed, wb_speed, olw_speed, rn_speed, ro_speed;
      public bool walking;
      public Transform playerTrans;
      void FixedUpdate()
      {
      if (Input.GetKey(KeyCode.W))
      {
      playerRigid.velocity = transform.forward * w_speed * Time.deltaTime;
      }
      if (Input.GetKey(KeyCode.S))
      {
      playerRigid.velocity = -transform.forward * wb_speed * Time.deltaTime;
      }
      }
      void Update()
      {
      if (Input.GetKeyDown(KeyCode.W))
      {
      playerAnim.SetTrigger("walk");
      playerAnim.ResetTrigger("idle");
      walking = true;
      }
      if (Input.GetKeyUp(KeyCode.W))
      {
      playerAnim.ResetTrigger("walk");
      playerAnim.SetTrigger("idle");
      walking = false;
      }
      if (Input.GetKeyDown(KeyCode.S))
      {
      playerAnim.SetTrigger("walkback");
      playerAnim.ResetTrigger("idle");
      }
      if (Input.GetKeyUp(KeyCode.S))
      {
      playerAnim.ResetTrigger("walkback");
      playerAnim.SetTrigger("idle");
      }
      if (Input.GetKey(KeyCode.A))
      {
      playerTrans.Rotate(0, -ro_speed * Time.deltaTime, 0);
      }
      if (Input.GetKey(KeyCode.D))
      {
      playerTrans.Rotate(0, ro_speed * Time.deltaTime, 0);
      }
      if (walking)
      {
      if (Input.GetKeyDown(KeyCode.LeftShift))
      {
      w_speed += rn_speed;
      playerAnim.SetTrigger("run");
      playerAnim.ResetTrigger("walk");
      }
      if (Input.GetKeyUp(KeyCode.LeftShift))
      {
      w_speed = olw_speed;
      playerAnim.ResetTrigger("run");
      playerAnim.SetTrigger("walk");
      }
      }
      }
      }
      you had syntax problem, try this

    • @SyedBilal524
      @SyedBilal524 13 วันที่ผ่านมา

      did anyone figure out? 🤔🙄

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

    hello can someone help me when i pres w to walk my player keep walking how to fix this?

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

    Hi.
    Can you add jump animation?

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

    Hi! I implemented this in my own game but the character's collision with the terrain isn't working too good. Sometimes it gets stuck in it if it's trying to go upwards, then when i got down, it floats. What can I do to fix this?

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

      change the capsules collider a bit

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

      If your Character is floating, decerase your capsule height from Capsule Collider section.

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

    Hey, can you please tell me about how to add an animation that plays when you press a or d? I have set up the a and d movement and a different camera movement style, and I have a trigger for the animation in the controller, but when I reset Idle in the script and set the sideways animation it just does a tpose. I even connected the sideways animation with every other animation in the controller, please help!

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

    and how l change the entry to idle animation??

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

    Hey, from where can I find as same as you character "Master Chief" ?
    Because When I download a character from mixamo then I uploaded again, I could not make my own rigging?!
    like what you did at 1:28.

  • @Christiansamurai-u7t
    @Christiansamurai-u7t ปีที่แล้ว

    i keep getting trouble with the variables even tho i put the script in the player parent it dosent show me the properties to fill in the variables

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

    I keep getting "Can't add script component 'Player' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match." when I put in the code.

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

    why in my player script, input for number speed is didnt exist in mine ?

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

    it kinda works my charecter is floating and the animations dont work. how to fix this?

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

      If your Character is floating, decerase your capsule height from Capsule Collider section.

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

    Thanks to you I succeeded to animate and control my Character🙂

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

      Glad the tutorial could help :)

    • @MikaelL
      @MikaelL 2 ปีที่แล้ว

      @@Omogonix Your video is the best tutorial and the clearest, and the easiest

    • @DIBRA07-F
      @DIBRA07-F 10 หลายเดือนก่อน

      @@Omogonix hello can someone help me when i pres w to walk my player keep walking how to fix this?

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

    I have an issue, when I drag the script to the parent model it does not work, any help?

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

    for me i never installed a character to use but rather the character and animation from mixamo, and now i don't know if i am supposed to restart with a character i downloaded

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

    Man, I really appreciate the time and effort you put into this video. I can't thank you enough for what you did.

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

    Please tell me why my character's animation is quite good but only running in place. Please help me!

  • @ZAHRULFUADBINYANGRAZALIKPM-Gur
    @ZAHRULFUADBINYANGRAZALIKPM-Gur ปีที่แล้ว

    hi, I've been doing everything correctly but in my player script, the variable component doesn't show up. any idea why?

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

    sorry for the question, but how can i add animated jump? thank you.

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

    Hey it worked but the animation is shattering can you solve this. Its like someone pulling back like glitch of online games. Please help

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

    here if we want that camera should be back side of character if character rotate than camera should also rotate...how to done that?

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

    apologies, can I get additional source code to jump?

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

    What do I do if half of my character's body is falling into the ground

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

      Select your character
      In inspector tab go to rigidbody component
      Constraints-->freeze rotation and freeze x and z rotation

  • @mr.smoothgames879
    @mr.smoothgames879 ปีที่แล้ว

    Unity says The referenced script on this Behaviour (Game Object 'Player') is missing!
    i don't know what it means someone help me please

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

    so not sure if anyone else is having this issue or not, but when i put the scrip on the player capsule and then go to put the stuff in the actual scrip as seen at 11:19 the player script is greyed out, and i dont know why. I cant do anything to it or with it inside of unity. Help lol

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

      Hey Mate dont know if still looking for an answer but at first it did the same thing for me too, i fucked up something in the script, if you copy and paste his comment about the exact script, it's supposed to work!

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

    Any ideas on how to rotate the camera? With the mouse?

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

    Just made my first 3d animated character thanks to this video, there are some improvements to make but this will do for now.

    • @DIBRA07-F
      @DIBRA07-F 10 หลายเดือนก่อน

      hello can someone help me when i pres w to walk my player keep walking how to fix this?

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

      @@DIBRA07-F same problem

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

    If your Character is floating, decerase your capsule height from Capsule Collider section.

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

      thanks! problem solved

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

    Great Vid! But I have a problem with the animations.. when I walk and stop it has to finish the animation and when I keep walking it teleport the character behind me. So it player stops moving but the animation still goes. Anyone know what is happening?

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

      i have same problem

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

    want to ask, why my animation at the animator workspace still tposing?

  • @MacenLopez
    @MacenLopez 22 วันที่ผ่านมา +1

    Can anyone tell me what script he is using

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

    Hi, I have made my terrain to be in even like going up and down a hill, my character is not staying on the ground, it starts on it but as soon as the terrain is uneven the character floats. Can you please help me

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

      You need to decerase your capsule height from Capsule Collider section.

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

    Hated the cinemachine Controller, It was weird. Thanks for your tutorial

  • @BruhDREED
    @BruhDREED 2 ปีที่แล้ว

    im having a problem for lines 71 72 73 and line 1 saying that A using clause must precede all other elements defined in the namespace except extern alias declarations yall know how to fix

  • @romeclarke660
    @romeclarke660 2 ปีที่แล้ว

    For Me, All it says in the player script is the tab that say player. How Can I Fix This?

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

    help please! I keep getting these errors:
    Assets\player.cs(70,1): error CS8803: Top-level statements must precede namespace and type declarations.
    Assets\player.cs(70,14): error CS1002: ; expected
    Assets\player.cs(71,1): error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declarations
    Assets\player.cs(72,1): error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declarations
    Assets\player.cs(73,1): error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declarations
    Assets\player.cs(70,14): error CS1022: Type or namespace definition, or end-of-file expected

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

      im having the same errors could you explain what you did to solve those

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

      delete camera's script from the player's script. be careful when copying the code.

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

    i have a little problem that is when i press the w or s key the player doesn't stop and does a sliding

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

      set rigidbody drag to 10

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

    hey! how r u? well... my the animations are working so perfect but, my character don't move forward or backward, just for the left or the right. how can i fix it?

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

      same

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

    Great vid, but when I move my character like teleports a step back. Any idea on how to fix this? thanks

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

      You didn't check inplace when you download the animation from mixamo

  • @efectiveusunt
    @efectiveusunt 2 ปีที่แล้ว

    i have a problem my character is not walking and is just animating the walk forward and backwards and idk why because he is running

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

      make sure to drag player to Player Rigid in the inspector

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

    12:26, mines still buggy, dosnt go back
    also the animation gets stuck sometimes
    character also dosnt turn
    the walk speed also sometimes increases twice when i press shift, like for example, i press shift and stop wlaking, i do it again and the speed is240, again and its like 400
    also, initially the walk speed and walk back speed is really slow and seems like its not moving
    edit: it seems ive fixed the turning but not the speed problem

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

      @@hazen7645 I'll check it out

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

      Can you explain how you fixed it?

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

      @@unknownbro9857 just make sure your colliders are lined up and everything in the code is correct

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

      @@aprizuniverse ok i will check it out
      Thnx a lot! 🫡🌟

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

    Why when I go backwards it teleports me to the center over and over again.But when i go forwards i dont get teleported?

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

      when you download the backwalk animation, you didn't check inplace

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

      thanks m8 ​@@pandu7903

  • @blurb2.0
    @blurb2.0 9 หลายเดือนก่อน

    if i sprint while using w it eventually slides for a bit if i stop moving anyone have a fix for this?

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

    can you please do a tutorial for a character from unity asset store??

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

    For some odd reason, my character can't rotate. It moves forward or backward, but it can't change it's direction. Any help?

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

      The Capsule called Player needs to be in the transform variable

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

    How to code WASD 3D character movement on UNEVEN TERRAIN?

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

    i added the script to the models parent and the variables didnt pop up

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

    When I hold the buttons to move, my character basically loops the animation and moves back a bit at every loop. Is there any way to fix this?

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

      check the loop pose voice, it fixs the problem.

    • @beast0titan
      @beast0titan 2 ปีที่แล้ว

      @@rosariocascone Nope he downloaded the animation without clicking inplace option🤣🤣🤣

    • @rosariocascone
      @rosariocascone 2 ปีที่แล้ว

      @@beast0titan i personally clicked on in Place but It didn't worked, so i used this trick

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

      @@beast0titan some animations in mixano, Like backjog, have a problem. I don't speak english very well so i can't explain, do you speak italian?

    • @beast0titan
      @beast0titan 2 ปีที่แล้ว

      @@rosariocascone ok fine

  • @notcrwnch
    @notcrwnch 2 ปีที่แล้ว

    I get an Error "The name'Keycode' does not exist in the current context" pls help

  • @creativedestroyersunknown1256
    @creativedestroyersunknown1256 2 ปีที่แล้ว

    when im making the transition in the animator the taking off the exit time the step after for the conditions says parameter dosent exist in controller

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

      i have the same problem

  • @LordGeson
    @LordGeson 2 ปีที่แล้ว

    hello I saw your video, only the void error FixedUpdate () comes out, what should I do?

    • @Omogonix
      @Omogonix  2 ปีที่แล้ว

      Hey, what does the error say exactly?

    • @LordGeson
      @LordGeson 2 ปีที่แล้ว

      @@Omogonixtells me this: the associated script can not be loaded. please fix amy compile errors and assign a valid script.

    • @Omogonix
      @Omogonix  2 ปีที่แล้ว

      @@LordGeson What are the compile errors? Sorry for taking a while to reply

    • @LordGeson
      @LordGeson 2 ปีที่แล้ว

      @@Omogonix do not worry indeed I must also thank you that you are answering me, can I contact you on discord so it's easier?

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

    for some reason my character is not moving

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

    my character is moving endlessly if i press any key , anyone help me with this problem?

  • @nuntaj.f.b.s.p4074
    @nuntaj.f.b.s.p4074 ปีที่แล้ว

    Which version of you visual studio and unity

  • @welcome-to-the-brotherhood
    @welcome-to-the-brotherhood 8 หลายเดือนก่อน

    i didnt got the animator thing near play button

  • @tacticaI.exe_
    @tacticaI.exe_ 3 หลายเดือนก่อน

    subbed ❤😇

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

    Thanks SO MUCH😍😍♥

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

    Amazing Tutorial, one problem though: Unity gives errors about the unchecked Exit Time, so the transition is ignored. How do i fix this?

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

      at the bottom where it says condition set it to the animation you are going into, like when it goes from idle to jog set the condition as jog

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

    Hello! Great tutorial. The animations are working but when I stop, for some weird reason, I just slide. Is there a way of fixing this? Thank you!!

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

      Hi! Try setting the Rigidbody's Drag to 10

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

      @@Omogonix It worked! Tysm.

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

      Ty too

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

      it doesnt work pls help
      @@Omogonix

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

      @@Omogonix thank you!

  • @realxsemy
    @realxsemy 2 ปีที่แล้ว

    Really good Video!

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

      Thanks!

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

    please help me its been 3 hours and i my animations still dont work with every video on the internet please help

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

    Great video! I only have one issue, if I walk to far away, the camera teleports to the player and it looks a bit janky, any idea on how to fix this?

  • @aizanalquino1926
    @aizanalquino1926 2 ปีที่แล้ว

    The tutorial was great but I have a question my character is floating he can animate and can move but the gravity was not working? thank you.

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

      try to dont enabled freeze position on rigidbody y

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

      If your Character is floating, decerase your capsule height from Capsule Collider section.

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

    Amazing work!

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

    Great video the animations work, but one problem. If I turn my character it will still go in the Z axis, is there a way I can fix this? Is there some part in the video I'm missing?

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

      Nevermind, I fixed the problem

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

      ​@@tristkelly2710what did u do to fix it? I heard to increase the rigs drag to 10 idk.

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

      @@MercyKOTG Just make sure the capsule is exactly matching with the capsule, If this doesn't work I may have another solution

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

    very useful

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

    mine is saying my animator is not playing a animator controller any ideas

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

    I have a problem when the player is played the initial animation is walk and not idle, like a crash. I hope you can help me. And I have subscribed to your channel

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

      check in animator and make sure that idle animation connect with entry.

  • @quiettime4659
    @quiettime4659 2 ปีที่แล้ว

    I have a CS1529 error when I copy and pasted the script please help :)

  • @c0okiecrumbs923
    @c0okiecrumbs923 2 ปีที่แล้ว

    how do we turn the code into a mono script if we have it on notepad

    • @Omogonix
      @Omogonix  2 ปีที่แล้ว

      At the time of this tutorial, I used Notepad ++, to change the language, there's a tab that says 'Language' and you can choose C# and everything will be formatted normally. I now use Visual Studio which is far better, I use to avoid it because it would take a while to load on my older laptop.

    • @bartekwarzecha4319
      @bartekwarzecha4319 2 ปีที่แล้ว

      There is difference in text written in notepad++ and visualstudio ?

  • @bharathdp
    @bharathdp 2 ปีที่แล้ว

    how to get animater window near game scene.its not showing to mee??

    • @Omogonix
      @Omogonix  2 ปีที่แล้ว

      In Unity there's a 'Windows' tab near the top of the screen. You can hover over that and find the Animator one

  • @aaronhernandez5965
    @aaronhernandez5965 2 ปีที่แล้ว

    Where do You dowload the Spartan

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

    My character keeps teleporting back while he's moving I can't figure out why

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

      make sure when you download the animations you have the "in place" box ticked, I had the same problem and that fixed it

  • @DARKlink150
    @DARKlink150 2 ปีที่แล้ว

    Not sure if anyone will help me out on this, but It says as a warning "Idle does not exist" and my character moves, its just only moving in place

    • @kut2utube
      @kut2utube 2 ปีที่แล้ว

      If you are still having this issue, then make sure to change the trigger name from Idle to idle (basically uncapitalize it)

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

    why in mine variable is not exist?

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

    walk does my variables not pop up

  • @kbbhjv806
    @kbbhjv806 2 ปีที่แล้ว

    how to rotate with some position

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

    My player will move forward and back but I cant turn

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

    It will not let me drag my Animator into the animator box...

  • @anilreddy6777
    @anilreddy6777 2 ปีที่แล้ว

    How to download the character can you please inform

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

    Thanks bro love from India 🤗🤗

  • @neitsistic8019
    @neitsistic8019 2 ปีที่แล้ว

    How to make Camera moving with mouse? (sorry for bad english)

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

    i dont have the animator next to game can you help me

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

      Go Window > Animation > Animator

  • @gmangman123
    @gmangman123 2 ปีที่แล้ว

    very usefull video thx!!!

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

    This was the most helpful video I ever watch🤩, Thank you so much!

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

    I dont think this works anymore, When in the idle position after moving my character continues to float around

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

      Decerase your capsule height from Capsule Collider section.

  • @APEKATTT
    @APEKATTT 2 ปีที่แล้ว

    i get the error cs1002. does anyone know how to fix it?

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

    Nice. Apart from my character doesn't collide with anything.

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

    Bro where is aninater tab in don't have

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

      U can add it on window and then animator