- Home /
Stuttering movement when approaching boundary
I'm trying to limit my movement in the y-axis by checking if the position will be within the boundaries after the Translate. If it is, only then do I translate the Player.
However, when I do this, the Player kind of pauses when approaching the boundary and then stutters forward towards the absolute limit upon releasing the key. I tried putting my Movement function in both the Update method and FixedUpdate, but neither made any difference. Can anyone give me any insight into this? I have pasted my code for reference: https://paste.ofcode.org/FuWkckctE5rDMYH5BmrurF
Your answer
Follow this Question
Related Questions
aquarium effect for 2d fish 2 Answers
2D player keeps getting dragged to the left for some reason. 0 Answers
2D Top-Down Movement: Transform.up and right don't change 2 Answers
How to I get my 2d gameobject to move towards another gameobject when it is clicked? 0 Answers
Help Wanted. Switching localscale starts unwanted animation state. 1 Answer