21-11-2008, 10:13 AM
Basically, the tiles around the edge won't render because a few of the pixels are off-screen.
If anything is even slightly off-screen, it wont render the entire thing.
You can see that in the tiles & trees.
Jacob found an alright method of fixing it, though.
I do that for sprites & animations, but doing this for EVERY tile would be laggy as fuck.
If anything is even slightly off-screen, it wont render the entire thing.
You can see that in the tiles & trees.
Jacob found an alright method of fixing it, though.
Labmonkey Wrote:The way i usually fix this is by when setting the rec, check if it is going to draw offscreen, and adjust accordingly.
ie, if x < 0 then recx = recx + x
eh not sure if that makes sense, but hope it helps
I do that for sprites & animations, but doing this for EVERY tile would be laggy as fuck.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?