The Question:
"Hi guys my player is moving choppy like it is slowing down then going faster after a few seconds I'm not sure what I did wrong?"
The Solution(s):
1. The quick one!
2. The longer (better?) one!
It is better, in my opinion for this tutorial series, to keep the input code within Update() but move the animation/movement code to within FixedUpdate() this occurs at a fixed interval determined by your project settings. Some sample code from my own PlayerMovement.cs is below.
Excerpt from PlayerMovement.cs
Happy coding! :D
PappaP x
PappaP x
No comments:
Post a Comment