It’s jumpy and warpy, not all the time, but I’d say 95% of the time when moving.
I’m using:
OrthographicCamera camera;
TiledMap map;
OrthogonalTiledMapRenderer renderer;
My rendering method is simply:
@Override
public void render(float delta)
{
if(Gdx.input.isKeyPressed(Keys.DPAD_LEFT)) currentX -= moveSpeed;
if(Gdx.input.isKeyPressed(Keys.DPAD_RIGHT)) currentX += moveSpeed;
if(Gdx.input.isKeyPressed(Keys.DPAD_UP))) currentY += moveSpeed;
if(Gdx.input.isKeyPressed(Keys.DPAD_DOWN)) currentY -= moveSpeed;
Gdx.gl.glClearColor(0.0f, 0.0f, 0.0f, 1);
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
camera.position.set(currentX, currentY, 0.0F);
camera.update();
renderer.setView(camera);
renderer.render();
fpslogger.log();
}
Can anyone offer some help? I’m having a rough time getting this to just simply move a camera around a TiledMap, I haven’t added anything but this!