[4.5.X] Player Object Jittering When Scrolling - Anyone else noticed this?

9Panzer

Well-known member
@Knietfeld oh! I certainly didn’t mean for that to come across badly.

I was very excited to try your solution and was thrilled to see a potential solution! I just wanted to let you know that there was something that wasn’t working as intended in the hopes it was something simple.

It’s VERY MUCH appreciated that you wrote all that up and I certainly don’t want you to feel that wasn’t the case!
 
I have finally got around to try @Knietfeld code, it has fixed sprite jittering but I have a different problem than those you guys mentioned.
I have lost all collision between objects.
Could it be because I am using the HandlePhysic seam fix by @TakuikaNinja ?
 

baardbi

Well-known member
Has anyone got this working with SciNEStist's improved camera routine (newcamerahandler)? I tried the fix from Knietfeld and that works with the default NESmaker setup, but not when I'm using the newcamerahandler. It removed the jittering but when I try to move left the player only moonwalks to the right (facing left but moving right), and the object collisions are also gone. I can't make sense of this... I would love to remove the jittering since 24 seems to be the perfect speed for my player.
 

9Panzer

Well-known member
Has anyone got this working with SciNEStist's improved camera routine (newcamerahandler)? I tried the fix from Knietfeld and that works with the default NESmaker setup, but not when I'm using the newcamerahandler. It removed the jittering but when I try to move left the player only moonwalks to the right (facing left but moving right), and the object collisions are also gone. I can't make sense of this... I would love to remove the jittering since 24 seems to be the perfect speed for my player.
Same problem for me. I just cranked the speed to 32 and worked with it lol
 

smilehero65

Active member
Just for clarification for anyone new encountering the issue.
This can easily be fixed if you have your Max Speed as a multiple of 16 (you can use of 8, but it is less recommended)

That would include:

--------------------------
8, 16, 24, 32, 40, 48
--------------------------

Numbers in orange/yellow will never give jittering.
Numbers in red may sometimes give jittering.

... and the list goes far beyond, but let's leave it there (too much speed will cause issues with scrolling loading)


However, all of this would apply only if you have your Acceleration at 255.
Any number lower will jitter your player anyway when stopping.
 
Last edited:

dale_coop

Moderator
Staff member
I might be wrong but I am pretty sure the speed needs to be a multiple of 16, to have no jittering with the scrolling.
 

smilehero65

Active member
I might be wrong but I am pretty sure the speed needs to be a multiple of 16, to have no jittering with the scrolling.
Hey Dale!
I thought that, too.
I tested myself with my player at 24 and it didn't gave me jitter...sometimes.
A weird thing I noticed is that the jittering at 8, 24, etc. is considerably smoother.

However, with multiples of 16 it will definitely never happen.


EDIT: The other multiples of 8 seem to jitter only when the camera is not centered.
 
Last edited:

dale_coop

Moderator
Staff member
Yes, with a multiple of 16 value for the Speed -> no jittering at all.
It's important to precise it for everyone.
Yes 8, 24... you still have a small one. One day we'll fix that (I really haven't found time to digg into that issue myself. So until then, I still use 16 and 32 for all my games)
 
Top Bottom