Adding Additional Actions to our State Machine in Unity | Character Controller (Tutorial 2)

  Рет қаралды 1,503

Bit Byte Bit

Bit Byte Bit

Күн бұрын

Пікірлер: 7
@BitByteBit_
@BitByteBit_ 2 жыл бұрын
I've added a link to the code for this project in the description!
@ethisfreedom
@ethisfreedom 2 жыл бұрын
keep it up
@dahstroyer
@dahstroyer 2 жыл бұрын
How would I make a run state where shift needs to be held
@BitByteBit_
@BitByteBit_ Жыл бұрын
Thanks for your question! Since I mainly have based the tutorials off of what I've needed for my current project, I haven't really messed with having a state where shift would need to be held. When I get a chance, I'll see if I can create a short video on something like that. Thanks for your comment!
@StressedProgrammer
@StressedProgrammer Жыл бұрын
Hi Thanks for this tutorial. I have subscribed for more content. I have one question. On your character map script, the On Jump function has zero references how is this function called when you press space? Lets suppose I have one more button "C" for crouch with some setup in Player Input, is this function going to be called when I press C?
@BitByteBit_
@BitByteBit_ Жыл бұрын
Great question! It doesn’t show a reference but is actually accessing your CharacterInput(input actions). For example, the Character action map includes the Movement and Jump actions, but how the new input system is used it expects a function called OnMovement and OnJump. If you want to have a crouch action, add a new action called “Crouch” to your input action map. You then want to add a function called OnCrouch. If the action name and function name don’t match, it won’t call the function. (Side note: You can see where these functions are called if you search the autogenerated CharacterInput.cs file). When you make changes to the CharacterInput(Input Action Asset) make sure to save the asset and it will regenerate the autogenerated file with your new functions. Hope this helps!
@StressedProgrammer
@StressedProgrammer Жыл бұрын
@@BitByteBit_ Thanks for the detailed Answer. I get it now :)
10 Months of Game Dev! Was it Worth It? | Devlog
10:03
Bit Byte Bit
Рет қаралды 13 М.
Playing Music on the Oldest Running Computer in America!
27:06
Usagi Electric
Рет қаралды 127 М.
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
Game Jam Missteps: What I Wish We Knew
3:44
Bit Byte Bit
Рет қаралды 791
AI Navigation in Unity
55:19
XR Terra Class
Рет қаралды 124
Episode 12   Pixel Platformer   Level UI
25:34
Tyler Tronnes
Рет қаралды 34
Can Your Comments Fix My Game? | Devlog
6:29
Bit Byte Bit
Рет қаралды 4,1 М.
Crafting a TERRIFYING Experience | Horror Game Devlog #1
10:11
Bit Byte Bit
Рет қаралды 7 М.
DevLog Complete RPG Unity Game from Start to Finish PART 10 make player run
16:08
ASDA/Walmart tea light cluster USB mod
13:58
bigclivedotcom
Рет қаралды 27 М.
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН