Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (739)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (820)
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 1601 times)
0 Members and 1 Guest are viewing this topic.
Offline Hazimel

Junior Newbie

« Posted 2013-10-05 10: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

Offline SHC
« Reply #1 - Posted 2013-10-05 11: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 11: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 11: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 12: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:

the mario class:

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

Offline SHC
« Reply #5 - Posted 2013-10-05 12: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 20: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 21: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
   //then render

is that what you say?
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Ecumene (61 views)
2017-09-30 02:57:34

theagentd (82 views)
2017-09-26 18:23:31

cybrmynd (189 views)
2017-08-02 12:28:51

cybrmynd (189 views)
2017-08-02 12:19:43

cybrmynd (194 views)
2017-08-02 12:18:09

Sralse (206 views)
2017-07-25 17:13:48

Archive (770 views)
2017-04-27 17:45:51

buddyBro (904 views)
2017-04-05 03:38:00

CopyableCougar4 (1454 views)
2017-03-24 15:39:42

theagentd (1332 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 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‑
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!