*
The moose likes Java in General and the fly likes move about? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "move about?" Watch "move about?" New topic
Author

move about?

fred fredricks
Greenhorn

Joined: Mar 04, 2003
Posts: 16
hi guys...i have to basically make a centerpide game. can you help me get started please ?
hmmm, can some1 tell me how to make a dot (anything i guess? ) to move around when you press the arrrow keys?
i need a keylistener right? i am not sure. any tutorials on this?
thanks....
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
How to write a KeyListener.
An example using a mouse click, but you get the idea . . .

(Added in some KeyListener code of sorts)
[ March 25, 2003: Message edited by: Cindy Glass ]

"JavaRanch, where the deer and the Certified play" - David O'Meara
fred fredricks
Greenhorn

Joined: Mar 04, 2003
Posts: 16
hi, thanks, i am looking at the code at the moment.. hmm, but i am sorry, i am a total newbie really..can you help me out a little more. i just want an image to move up, down, left right when the arrows are pressed..the mouse click is confusing me a bit
thanks !
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
OK - I was in a hurry. Here it is without the Mouse stuff.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: move about?
 
Similar Threads
Java Jobs in Denmark
Tomcat and Axis and classpaths
Everything posted here after ....
which one is the better way to create a thread
Changing Console Resolution