So I had a quick try at parallaxing.
I paint the background (the sky) onto the room surface at the viewport but it seems to lag slightly and is especially noticeable if you jump.
Any ideas why that might be?
Code: ags
http://www.thethoughtradar.com/AGS/Platformer.zip
I paint the background (the sky) onto the room surface at the viewport but it seems to lag slightly and is especially noticeable if you jump.
Any ideas why that might be?
DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
surface.Clear();
surface.DrawImage(GetViewportX(),GetViewportY() , 14);
http://www.thethoughtradar.com/AGS/Platformer.zip