View Single Post
Old 19 April 2011, 21:30   #10
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
Quote:
Originally Posted by Leffmann View Post
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
Lonewolf10 is offline  
 
Page generated in 0.04905 seconds with 11 queries