Quote:
Originally Posted by Leffmann
Try waiting for f.ex line 300 and then line 301. That way you're guaranteed your loop only runs once per image frame.
|
Why do we need to do that? Is it because the sprite movement code can be finished within 1 raster line, thus when the wait line 300 is encountered again it's still on line 300 and the sprite routine runs a 2nd time?
I currently have a sprite that moves smoothly in my demo, but occasionally it moves twice as far as intended within a VBL, thus making it jerk slightly.
Regards,
Lonewolf10