What kind of flickering are you talking about? Flickering means that it disappears for a frame or two then reappears. Maybe you mean it stutters, where it doesn't move smoothly?

Or do you mean that the image isn't VSynced (ie. you're seeing a bit of the current frame and a bit of the previous one)? BufferStrategy isn't guaranteed to be VSynced so this can result in flicker, depending on the system (which is?).

Looking on your moving code inside KeyAdapter class, I guess you move hardly, one tile per keypress. If you want a smooth one, you should use delta to calculate the movement little by little each frame.

Looking on your moving code inside KeyAdapter class, I guess you move hardly, one tile per keypress. If you want a smooth one, you should use delta to calculate the movement little by little each frame.

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