No video

UNITY Character Controller - Easy Tutorial

  Рет қаралды 91,881

Solo Game Dev

Solo Game Dev

Күн бұрын

CharacterController allows you to easily do movement constrained by collisions without having to deal with a rigidbody. In this video, we will learn how to use character controller component in Unity. Enjoy watching.
❤️Join My Channel to Support Me: / sologamedev
💙Subscribe to My Channel: www.youtube.com...
●For How to Make a Multiplayer Game in Unity | Easy Tutorial: • How To Make A Multipla...
●For Unity Multi-Language System(Localization): • Unity Multi-Language S...
●For How To Make an AR Application in Unity : • How To Make an AR Appl...
Hi from Solo Game Dev. I am a game developer. On this channel, I create easy to learn game development tutorials and develop games with Unity and the other game engines. These tutorials and games also include multiplayer games. In general, I create content related to game development, game design and games.
I also actively respond to comments and feedback so don't be afraid to let me know what you think, or recommend or request a specific video!
Follow and enjoy unique content!
You can follow me on Social Media and send your questions and requests from there!
TWITTER: / sologame_dev
INSTAGRAM: / solo.game.dev
#UnityCharacterController #UnityMovement

Пікірлер: 73
@Idontcheatlolaa
@Idontcheatlolaa Жыл бұрын
Thanks man, this was straight to the point. Subbed
@ishaanjain4919
@ishaanjain4919 10 ай бұрын
Simple and elegant tutorial. Great Job!
@GrindedNick
@GrindedNick Жыл бұрын
Nice and clean code man, thanx! My cs always en in 80 lines with 80 compiler errors xddd
@SoloGameDev
@SoloGameDev Жыл бұрын
😄
@Zeilsane
@Zeilsane 6 ай бұрын
thank you for making these videos you are a lifesaver!
@y01cu_yt
@y01cu_yt 7 ай бұрын
Simple and clean as always!
@querany
@querany Жыл бұрын
great tutorial!!
@SoloGameDev
@SoloGameDev Жыл бұрын
Thanks :)
@inks_official1457
@inks_official1457 5 ай бұрын
i'm getting the erorr by the 18 row for the GetAxis, it is saying GetAxis horisontal it's not set up.
@rotigames789gameplaystutor2
@rotigames789gameplaystutor2 2 жыл бұрын
Thanks you bro. you are the best!!!!!! can you do a tutorial for: How move the camera with the mouse in first person? :DDDD new sub
@SquidyCodes
@SquidyCodes Ай бұрын
Thanks :D!
@beatrixbritz7110
@beatrixbritz7110 4 ай бұрын
Thank you thank you thank you it works it toke me 165 days to make a player thank you🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉
@not_tranker
@not_tranker 2 ай бұрын
Before this, I made my own humanoid scripts, with rigidbodies, it was more complex, but more customizable
@tomazznidarko8700
@tomazznidarko8700 7 ай бұрын
SImple but it works as it should. Thank you.
@ItzAlexGamingOfficial
@ItzAlexGamingOfficial 7 ай бұрын
I tried this, but it gave me the error saying "Assets/character.cs(20,9): error CS8803: Top-level statements must precede namespace and type declarations" How to fix?
@undead504
@undead504 Жыл бұрын
whatever happened to the Drag and Drop Like Before
@johnx140
@johnx140 2 жыл бұрын
Thank you bro!
@RiskulVR
@RiskulVR Ай бұрын
Good tutorial but chill with that keyboard holy it's louder than your voice
@Cazyman24
@Cazyman24 2 ай бұрын
using this controller when you stop it adds a little bit extra movement, which does add a lot of smoothness. But I don't want that, I want my character to stop as soon as you let go, how do you fix this?
@Aaron-nl8ge
@Aaron-nl8ge 10 ай бұрын
For me it wont accept charactercontroller.Move because Move isnt defined can anyone help ?
@decalibrator3434
@decalibrator3434 Жыл бұрын
at 1:01 how did you get to add spaces in between the variables names and the asterisks?
@brothercuber3288
@brothercuber3288 Жыл бұрын
vs code often adds spaces on it's own, much like ending quotes and parentheses.
@palashdangal
@palashdangal Жыл бұрын
@@brothercuber3288 Yeah
@eptic-c
@eptic-c 8 ай бұрын
@@brothercuber3288 Too bad that is not vs code
@MoTheBlackCat
@MoTheBlackCat Жыл бұрын
Yo! Isn't that using the old input system? Edit: Ah no they are keep both input systems in unity, cool to see dat!
@STUDIO_YF
@STUDIO_YF 5 ай бұрын
what is in the character capsule?
@chuqur_ichkarida
@chuqur_ichkarida Жыл бұрын
You can handle this capsule without creating a characterController, so why didn't you do that?
@davhsfrdhsr00
@davhsfrdhsr00 Жыл бұрын
pretty useless without rotation
@nathan3135
@nathan3135 2 жыл бұрын
The scripting place isnt showing up when I try to open it
@DoorsBlox
@DoorsBlox 2 жыл бұрын
you need a scripting application
@mortis-506
@mortis-506 2 ай бұрын
wouldn't it be nice if Unity had this component already built it..
@Isthat_Will
@Isthat_Will 7 ай бұрын
It doesn't bring me to the black code page. It brings me to a white page that shows the code but I am not able to edit it. Do you know how I can get to the page where you are able to edit the code?
@elumiie
@elumiie 5 ай бұрын
It's "visual studio". If you do not have VS installed, it will use the computers standard editor instead.
@thatonedudelive7260
@thatonedudelive7260 Жыл бұрын
Am I doing something wrong? Copied the code line for line, capsule wont move using wasd or anything keys. Also the public float wont show under the script to adjust speed. using UnityEngine; public class Character : MonoBehaviour { private CharacterController characterController; public float Speed = 5f; void Start() { characterController = GetComponent(); } void Update() { Vector3 move = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical")); characterController.Move(move * Time.deltaTime * Speed); } }
@ritchiecoleman2813
@ritchiecoleman2813 Жыл бұрын
put is trigger on in the capsule collider
@stelbertstylton
@stelbertstylton Жыл бұрын
The only thing I can think is that maybe you didn't add a character controller?
@blocc_nova746
@blocc_nova746 Жыл бұрын
I'd follow along but I don't know what you're doing.
@lsdjhfshjdf
@lsdjhfshjdf 3 ай бұрын
the code for extra lazy ppl like me using UnityEngine; public class Character: MonoBehaviour { private CharacterController _characterController; [SerializeField] private float _moveSpeed = 10f; private void Start() { _characterController = GetComponent(); } private void Update() { Vector3 move = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical")); _characterController.Move(move * (Time.deltaTime * _moveSpeed)); } }
@user-df3uu7nl9w
@user-df3uu7nl9w 10 ай бұрын
it won't move it
@Broncos_Nation
@Broncos_Nation 11 ай бұрын
it wont work can someone fix it using System.Collections; using System.Collections.Generic; using UnityEngine; public class Character : MonoBehaviour { private CharacterController characterController public float speed = 5f { characterController = GetComponent(); } // Update is called once per frame void Update() { vetctor3 move = new vetctor3(input.getAxis("horizontal"), 0, input.getaxis("Vertical")); characterController.move(move * time.deltatime * speed); } }
@dotRianne
@dotRianne 11 ай бұрын
public float speed = 5f needs to be public float speed = 5f;
@JBAIMARK3
@JBAIMARK3 10 ай бұрын
My man you're code is all over the place, I copied and pasted it you're missing a bunch. You need to make sure you use the capital letters where shown, you need to check your spelling of "Vector", you need to use ";" at the end of each statements, you need to make sure you have the functions shown... you are missing your "Start()" function. I struggle too, but can't be loosey-goosey with how you write stuff in code, go through what's shown slowly line by line and see what you're missing. Then throw the script on the capsule, with "Character Controller" in the "Physics" menu, and it will work 10 out of 10 times.
@joshuarussell138
@joshuarussell138 5 ай бұрын
Bro hit 1000 buttons, and moving so fast lol
@Iam_KED
@Iam_KED 3 ай бұрын
the keyboard sound effect is crazy. never do it again
@chewwy-0
@chewwy-0 Жыл бұрын
it didnt work for me
@RedDeepwoken
@RedDeepwoken Жыл бұрын
it breaks when i turn the character
@cali-zior
@cali-zior 9 ай бұрын
█ En Unity Siempre Estuvieron Completo los Pack de Control PORQUE TE PONES A PROGRAMAR ALGO QUE YA EXISTE Y MAS COMPLETO? o Unity los Elimino y no Quiere que bajen mas Pack de Character Control?
@concernedcitizen9101
@concernedcitizen9101 8 ай бұрын
yes
@cali-zior
@cali-zior 8 ай бұрын
@@concernedcitizen9101 █So there we have to do the programming again LOL
@nathan3135
@nathan3135 2 жыл бұрын
I accidentally put the script in another file. So I have the impression that the script will not be available to unity because the file have nothing to do about it. Idk why it suggested me to put it in another file, maybe i need to download something for the coding. Idk but i need to get it out of here and idk how. plz help
@Levi-xx1mj
@Levi-xx1mj 2 жыл бұрын
Just copy the file and remake it in another one. And delete the old one.
@kelet-std
@kelet-std 8 ай бұрын
why title is in russian
@jeff7530
@jeff7530 2 жыл бұрын
hi, how could i make it so that i move slower when going backwards?
@Levi-xx1mj
@Levi-xx1mj 2 жыл бұрын
Make it so when you press s, the speed variable lowers, and if you arent pressing s, it goes back to normal
@jeff7530
@jeff7530 2 жыл бұрын
@@Levi-xx1mj thank you 🙏🙏🙏
@ironbattledrone
@ironbattledrone 11 ай бұрын
Hey i need some help this script wont work can someone help me fix it? using System.Collections; using System.Collections.Generic; using UnityEngine; public class Character : MonoBehaviour { Private Charactercontroller characterController; void Start() { Charactercontroller = GetComponent(); public Float speed - 5f; } // Update is called once per frame void Update() { Vector3 Move = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertiacal")); characterController.Move(move * Time.deltatime * Speed); } }
@biocronic2986
@biocronic2986 4 ай бұрын
No. I dont like. How did you get there with the stuff you already have.
@sharrpea1
@sharrpea1 Жыл бұрын
how do i make the character jump
@RedDeepwoken
@RedDeepwoken Жыл бұрын
just make it a rigid body and add vector force going up
@trizium5976
@trizium5976 2 жыл бұрын
I am having some trouble if someone could help
@SoloGameDev
@SoloGameDev 2 жыл бұрын
What is your problem?
@BeLostTwice
@BeLostTwice 2 жыл бұрын
So much for the channel owner actively responding. What do you need help with?
@namehere4112
@namehere4112 2 жыл бұрын
@@BeLostTwice wdym, he responded before you
@Levi-xx1mj
@Levi-xx1mj 2 жыл бұрын
@@namehere4112 fr lmao
@Catty.R
@Catty.R Жыл бұрын
@@BeLostTwice How is he supposed to help if he does not know?
@yakingamerofficial
@yakingamerofficial 2 жыл бұрын
evvet
@imrlucky_a
@imrlucky_a 6 ай бұрын
aga Turk musun
@SoloGameDev
@SoloGameDev 6 ай бұрын
Evet :)
@imrlucky_a
@imrlucky_a 6 ай бұрын
:D accent@@SoloGameDev
@huseyinkucuk3909
@huseyinkucuk3909 6 ай бұрын
Tam ben yazacaktım.
@pogieking3
@pogieking3 8 ай бұрын
the fuck is this? this isn't simple where is the damn link to the whole code?
@Mosaiiic
@Mosaiiic 7 ай бұрын
This is super simple. Yet even i'm struggling with it 😭
How to Move Characters In Unity 3D | Character Controllers Explained
9:46
THIRD PERSON MOVEMENT in Unity
21:05
Brackeys
Рет қаралды 1,4 МЛН
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 16 МЛН
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 44 МЛН
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 6 МЛН
Unity Inventory System - Easy Tutorial
16:35
Solo Game Dev
Рет қаралды 192 М.
Unity CHARACTER CONTROLLER и RIGIDBODY простым языком за 7 минут!
7:10
Яковлев Илья - IT и игры
Рет қаралды 16 М.
I Paid Fiverr Game Developers to Make the Same Game
10:25
BadGameDev
Рет қаралды 676 М.
FIRST PERSON MOVEMENT in 10 MINUTES - Unity Tutorial
9:58
Dave / GameDevelopment
Рет қаралды 1 МЛН
Каким будет осенний призыв? Чего нам ждать?
33:00
НО.Медиа из России
Рет қаралды 387 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4 МЛН
Can AI code Flappy Bird? Watch ChatGPT try
7:26
candlesan
Рет қаралды 9 МЛН
How to Animate a Character from Mixamo in Unity - Full Walkthrough
34:37
Philipp Dominic Siedler
Рет қаралды 59 М.
I turned Programming into a Game
8:49
FaceDev
Рет қаралды 98 М.
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 16 МЛН