graphic issue on my first game

Hi everyone!

First of all i beg you to forgive me if i make any mistake, my english is not as good as i want it to be.

i have been learning game proggraming for a couple of months, and i am making now some test in java with libgdx, i am trying to clone a super mario to learn the basics. The problem is that it seems to have a graphical issue, like a little jump on the graphcis when mario is walking.

i am using java with libgdx and tiled for the maps, i dotn know if the problem is in some feature of libgdx, in the rendring of the tiled map, or in my general programmig. Vsych is set to false, that improve the issue but not fix it.

Please could anyone help me with this? have anybody to deal with a problem like this?

this is the link to the .jar

http://bayfiles.net/file/XprB/MH5APk/pruebas.jar

Thanks!!

Can you explain the specific problem you are having? I just think that your jump speed is too much.

Lot of thanks for your attention SCH, yes of course, i think i dindt explained it well.

the problem is not in jumping, is when mario is moving horizontaly either left or right, the background (blocks, coins, grass) dont move smooth.

can you please run the jar, and view it by yourself?, maybe i am not explainign it well :frowning:

thank you very much for your attention, very appreciated.

There’s no problem in scrolling on my pc. Did you try enabling vsync? Also please can you show some source?

i have tryed with vsync enabled and disabled , with vsync=true i think the visual effect is even a little worse, is like the blocks were “vibrating” when mario is moving.

of course, here is the code:

the main class:
http://pastebin.java-gaming.org/e4a601a3b74

the mario class:
http://pastebin.java-gaming.org/4a60a2b347d

your help is invaluable for me, thank you very much.

Sorry but I can’t find any errors in your code. I think the problem is in your pc only. I can play it fine.

If you mean when you move it jumps about a bit , Move it then render it this will fix your issue.

thank you both for answer, sorry lcass but i dont get it :frowning:

that is not what i am doing here?

//i move mario, and set the camera position.x to his position.x

  updateMario(deltaTime);     
  camera.position.x=mario.position.x;
  camera.update();

//then render
renderer.setView(camera);
renderer.render();

is that what you say?