If you open unity 2d platformer example and look very close you’ll see the the player movement isn’t smooth. it’s like he’s stuttering.
If you play with xsmooth and ysmooth values on the cameraFollow script you’ll notice it better.
I tried creating a 2 platformer and the same problem, I can’t make a camera follow script, without the player stuttering or the background stuttering.
So it’s not like it’s only my problem, because it also happens in the 2d platformer example made by unity themselves.
Any solution?
Thanks
I’m sure my application of physics could use a little work, but even moving at top speed at a set velocity I seem to get periodic jerks where the player seems to jump.
I’ve tried various ways of applying acceleration / force and managing velocity but haven’t been able to solve it yet.
Would love to hear if anyone else has encountered and / or solved this.
There is currently a bug where the sprite doesn’t match the position of the collider. The collider is correct but the sprite is not. Occasionally it snaps in.
A way to check is to select the game object prior to running your game so that you can see the green outline of the collider. If the collider and sprite diverge, then you have this problem.