###

» Thu Jun 13, 2013 12:50 pm

Hi All,

I have this weird problem where two objects are moving at exactly the same speed (BG1.Y + InstanceVariables.Speed_Ground*dt AND Tree.Y + InstanceVariables.Speed_Ground*dt) but sometimes one of them jumps 1 pixel ahead..

I've tried turning pixel rounding ON, it corrected the jumping but resulted in strange jittering which is worse (you'll see what I'm talkin about once you download the capx and turn it on)..

I am attaching the capx here. Please take a look at the trees and the ground, sometimes the trees will jump one pixel down as if they're ahead of the background although they're moving at the same speed, I don't get what's the problem.. I though that the jumps may be connected to the ground looping itself but that does not seem to be the case since the "jump" does not occur at evenly spaced time intervals, it happens randomly..

Could it be that it happens because the sizes of objects are different?

I'd greatly appreciate if someone can tell me how to fix this since it's a major problem and I just can't seem to find a way around it

Thanks all in advance!

https://dl.dropboxusercontent.com/u/113382849/Problem01.capx

bigproblem012013-06-13 12:51:32