O.k how do you make something move on the screen? I have been trying so hard to get this right and have looked at many different ways but none of them seem to work properly or just do not work at all. I know you have to redraw the image when you want it to move but how can i do this? I have looked on every tutorial here but they don't give much detail about why they put that peice of code there. So please can some one help me?

Nope doesn't really help it tells you in parts which is confusing for me. All i want to know is a good peice of code that makes a square move up and down on the screen. The rest il figure out when i come 2 it.

clear the buffer (or don't)change variables accordingly to the input flags (logic)draw the background on the bufferdraw the sprites on the bufferdraw the hero on the buffer (using those variables)draw other stuff on the bufferdraw the buffer on the screen

repeat

---

in the input handler:

if key 'x' is down set the flag to 1if key 'x' in not down set the flag to 0if key 'esc' is down set "makes sense" to false

---

That's the whole idea. Of course you need to know how to programm in java - otherwise you won't be able to do much.

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