Create a Character Controller with Unity's "New" Input System | Character Controller (Tutorial 1)

  Рет қаралды 5,585

Bit Byte Bit

Bit Byte Bit

Күн бұрын

Пікірлер
@_zeldaking_5830
@_zeldaking_5830 2 жыл бұрын
One of the developers here! I recorded/edited this video and want to apologize for doing so while sick. Please excuse the sniffles 😅 This is also the first video I have ever edited, so if there are any suggestion; content or otherwise, let us know! Thanks
@theshadowunity8260
@theshadowunity8260 3 ай бұрын
Dude, you did an incredible job! The intro just pumped me up, and throughout the video, the slick, smooth background music continuously helped me stay calm, focused, and motivated. In terms of improvement, you could try editing more stuff. For example, when the narrator describes something, you could add a related video or GIF. You could also zoom into parts or highlight stuff when he is talking about something. Additionally, you can add confetti or celebration effects when he makes something work, like the first-time getting input values or the first-time character starting to move.
@KDHD.12
@KDHD.12 2 жыл бұрын
Can I please just State (punpunpunpun) how much I am thankful for the way you have explained everything in this video. You've reignited a fire in my life and I was literally coding/designing for 18 hours yesterday after not doing anything of the sort for 15 years. Thank you once again!
@BunDuq296
@BunDuq296 2 жыл бұрын
You don't know for how long i have been searching for this, Much love.
@_zeldaking_5830
@_zeldaking_5830 2 жыл бұрын
For sure! There is a lot of scattered info across the web, hoped it would be handy for some!
@adrianeilsantos
@adrianeilsantos 2 жыл бұрын
This is super useful!! I've followed a lot of gamedev videos before and your code is so cleaaan and organized. I appreciate it a lot since I also like to keep my code clean, modular, scaleable, and readable. Thanks a lot!
@BitByteBit_
@BitByteBit_ 2 жыл бұрын
Thanks for your comment! It’s difficult to keep code organized and readable at times! 😂
@paulberry3359
@paulberry3359 Жыл бұрын
Yes especially if you continue to add states for combat and different animations for each state
@mariajostephens201
@mariajostephens201 2 жыл бұрын
Thanks for being a resource in the development community
@vcb7480
@vcb7480 Жыл бұрын
man, this is so good. The best video I've seen on that topic. Thanks a bunch
@BitByteBit_
@BitByteBit_ Жыл бұрын
Thank you so much! Glad it was helpful!
@KDHD.12
@KDHD.12 2 жыл бұрын
For anyone who had their character bounce off the terrain or randomly teleport then get affected by gravity. First select your character from Heirarchy, then go to > Character Controller > Center > Set Y to 0.01. This will centralize the character capsule (green wire capsule) surrounding your character and stop it from colliding with terrain and causing errors.
@trapeface
@trapeface 2 жыл бұрын
TLDR; Very meaty bone. ;) **THE BEST** Video on the topic I've seen. Call it ... 97-to-98% sure I've seen them all. Guy took his time, and made it well. ----------- Not -------- just "oh slap a move transform in update on it, & watch as I fall off a plane ....'thanks for watching thumbs up, subscribe ummmmm' x9000.."--. Very much thank you. Your a gem ;)
@josekarnikowski1711
@josekarnikowski1711 Жыл бұрын
Really nice video
@BitByteBit_
@BitByteBit_ Жыл бұрын
Thank you! Glad you enjoyed!
@programmer2AG
@programmer2AG 3 ай бұрын
Loving this Type of series please make more like this and I have a doubt how do I add Dash state in this I am bit confused Cause I have a separate script that calls the dash function upon pressing the button
@thiagosoares7414
@thiagosoares7414 11 ай бұрын
Hey there, first of all AWESOME tutorial! Question: At 18:05 you said you like the player mobility on the air, but if I just want to allow player to rotate the bodey (not move any distance) I have to create another method for this instead call Move() there, right?
@calvinms7503
@calvinms7503 2 жыл бұрын
Thanks for the video. I am waiting for the code for walking on the slope
@MaximilianPs
@MaximilianPs 8 ай бұрын
Looks like in Unity 2022.3 doesn't work :( OnMovement is correctly highlighted in VS but the method never run and debug.log didn't spit any string on console 🙄
@anamnesis972
@anamnesis972 Жыл бұрын
How to make that the player is able to change the keybinds ? Is it still possible if it's done the way you show ? Thanks you very much~~
@BitByteBit_
@BitByteBit_ Жыл бұрын
Yes! It is possible to do key rebinding with Unity’s New Input system. I may do a tutorial on this in the future, but if you search for Key Binding in Unity’s New Input system you should be able to find something.
@TheDailyInternet
@TheDailyInternet 2 жыл бұрын
Thank you for this video. Now how does one go on about adding a jump feature using this method, if I may so boldly ask?
@BitByteBit_
@BitByteBit_ 2 жыл бұрын
Thanks for asking! You can add a new button action to your input map, add an OnJump method in the same place as your OnMovement method, and you can create a JumpState just like how you created other states. That’s how I would set it up. 😊
@TheDailyInternet
@TheDailyInternet 2 жыл бұрын
@@BitByteBit_ thank you!
@nayt1460
@nayt1460 2 жыл бұрын
Any advice on tagging the ground? You mentioned the player controller recognizing tags, I can try and come up with a collision response, but would love to know if there's something simple I'm missing! (sorry, more of an artist than a coder, but doing my best!)
@BitByteBit_
@BitByteBit_ 2 жыл бұрын
When I’ve done tag checking in the past I’ve used a collision check to check the tag of the game object passed in. It’s possible that there are other ways to do it, but I think that method is very simple and effective. 😊
@nayt1460
@nayt1460 2 жыл бұрын
@@BitByteBit_ awesome, thank you!
@lucasdev2831
@lucasdev2831 2 жыл бұрын
For some reason I'm getting stuck at the state manager script, it won't recognize the 'Controller' and 'Input' components from the previous script. Also the PlayerSpeed and PlayerRotateSpeed. Any idea why?
@_zeldaking_5830
@_zeldaking_5830 2 жыл бұрын
Hmm. Let me poke through my code, and see if I missed something for yall. I'll respond back in a few days. I would check your namespaces in the meantime, but Ill look into it
@KDHD.12
@KDHD.12 2 жыл бұрын
@lucasdev I had this same problem. It turns out there are duplicates of the script files in the directory.
@gamernabilalabadi6240
@gamernabilalabadi6240 2 жыл бұрын
I can not use the Varbials from the script "PlayerVariables" in the script " playerstateManager" why?
@BitByteBit_
@BitByteBit_ 2 жыл бұрын
Hmm.. I would check to see if your player variables script is a partial PlayerStateManager class. For example instead of ‘Public PlayerstateVariables : Monobehavior’ you would replace that with ‘Public partial class PlayerStateManager’.
@gamernabilalabadi6240
@gamernabilalabadi6240 2 жыл бұрын
Maybe i didn't use public i will check it out thx
@BitByteBit_
@BitByteBit_ 2 жыл бұрын
I posted a link to the source code in the description if you need any references.
@mrhekko9842
@mrhekko9842 2 жыл бұрын
How do i make jumping?
@BitByteBit_
@BitByteBit_ 2 жыл бұрын
Good question! I actually haven’t coded any jumping stuff, so I’ll have to try it out and do a video in the future.
Unity's NEW input system in 13 minutes
13:02
BiteMe Games
Рет қаралды 34 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
The INSTANT Unity Character Controller for first and 3rd Person Games
13:53
Jason Weimann (GameDev)
Рет қаралды 70 М.
[UNITY] Что такое Scriptable Objects в Unity?
7:11
n.fridman
Рет қаралды 8 М.
THIRD PERSON MOVEMENT in Unity
21:05
Brackeys
Рет қаралды 1,5 МЛН
Новый Input System в Unity. С чем его едят?
23:55
ЯЮниор - Школа Разработки Игр
Рет қаралды 34 М.
FIRST PERSON MOVEMENT in 10 MINUTES - Unity Tutorial
9:58
Dave / GameDevelopment
Рет қаралды 1,1 МЛН
НАШЕ НОВОЕ ПОПОЛНЕНИЕ 🐣
0:16
Family Box
Рет қаралды 2 МЛН
Sorvete de Danoninho
0:57
Spider Slack
Рет қаралды 33 МЛН
LNS - Kind rich kids & Poor homeless 😢🥺😭 #shorts
0:59
Linh Nhi Shorts
Рет қаралды 8 МЛН
Выхлоп за 70р, дёшево и сердито!
0:28
IGORIAN TODAY
Рет қаралды 3,8 МЛН