Sorry, I didn't know things like that the little things like that could actually affect the issue...
Type: Posts; User: Gravity Games
Sorry, I didn't know things like that the little things like that could actually affect the issue...
Found the problem, and it was a dumb one too... I apparantly was calling the repaint method too much, and it was trying to update the screen 3 times over...
Well, that's the whole render method, at least for the tiles. It also happens at random when a lot is on screen, no patterns whatsoever. Also, its not that the tiles don't actually draw, its that...
Ok.
public void render(Graphics g, Component c){
//g.setColor(Color.red);
//g.fillRect(x-Frame.sx,y-Frame.sy,16,16);
if (TileId==1){...
I'm assuming the problem might be that I'm using Image Icons instead of Buffered Images. Could anyone here tell me how to use Buffered Images in a way that will compile to a .jar?
Hi, I've been working on my game for a while now, and I've started making levels. Unfortunately, when I have a lot of tiles on screen, some tiles will lag behind on updating the position they're...