- Home /
How to make a dodge command/travel a certain distance in a forward direction based on current forward vector then stop?
So, I'm trying to make an action jrpg similar to that of Kingdom Hearts, Devil May Cry, Bayonetta, etc. I'm currently working on making a dodge command, where when you press a button while there is input in the left analog stick, the character moves a certain distance, then stops. The character must move the whole distance in a straight line, no input can be accepted during the dodge, other than the right stick (Camera). Here's the code I have so far.
Where do I go from here? Should I make this a part of the player script instead of it's own? I'm brand new to all of this, so any and all tips would be helpful!
Tryingtoreadcodethewayyouposteditisliketryingtoreadthissentence,it'spossiblebutit'sjustharder.
Please reformat the code so it's easier to read
Your answer
Follow this Question
Related Questions
Character controller without Deltatime 1 Answer
Jumping makes the player jump 2 times, 2 Answers
How to adjust camera position/rotation when player looks up or down? (Third Person Camera) 1 Answer
Stop movement while attacking 1 Answer
I need help with raycasts and with color of gameobject [SOLVED] 3 Answers