I've added a link to the code for this project in the description!
@ethisfreedom2 жыл бұрын
keep it up
@dahstroyer2 жыл бұрын
How would I make a run state where shift needs to be held
@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 Жыл бұрын
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_ Жыл бұрын
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 Жыл бұрын
@@BitByteBit_ Thanks for the detailed Answer. I get it now :)