Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  graphic issue on my first game  (Read 416 times)
0 Members and 1 Guest are viewing this topic.
Offline Hazimel

Junior Newbie





« Posted 2013-10-05 12:57:39 »

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!!
Offline SHC
« Reply #1 - Posted 2013-10-05 13:09:23 »

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

Offline Hazimel

Junior Newbie





« Reply #2 - Posted 2013-10-05 13:15:30 »

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  Sad


thank you very much for your attention, very appreciated.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SHC
« Reply #3 - Posted 2013-10-05 13:33:32 »

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

Offline Hazimel

Junior Newbie





« Reply #4 - Posted 2013-10-05 14:18:27 »

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.

Offline SHC
« Reply #5 - Posted 2013-10-05 14:46:13 »

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.

Offline lcass
« Reply #6 - Posted 2013-10-05 22:00:46 »

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

Junior Newbie





« Reply #7 - Posted 2013-10-05 23:51:16 »

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

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?
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (62 views)
2014-04-15 18:08:23

BurntPizza (60 views)
2014-04-15 03:46:01

UprightPath (73 views)
2014-04-14 17:39:50

UprightPath (56 views)
2014-04-14 17:35:47

Porlus (73 views)
2014-04-14 15:48:38

tom_mai78101 (99 views)
2014-04-10 04:04:31

BurntPizza (159 views)
2014-04-08 23:06:04

tom_mai78101 (254 views)
2014-04-05 13:34:39

trollwarrior1 (208 views)
2014-04-04 12:06:45

CJLetsGame (215 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!