05-23-2003, 12:26 PM | #1 | ||
Go Reds
Join Date: May 2001
Location: Bloodbuzz Ohio
|
Visual Basic 6 question
I'm in programming right now so I'd like to get some help.
Does anyone know the code required to get an object to move left, right, down, or up with the corresponding buttons on the keyboard? I am having a hell of a time trying to figure out how to move my character for my game.. Any help is greatly appreciated. |
||
05-23-2003, 01:11 PM | #2 |
Pro Starter
Join Date: Nov 2002
Location: Winnipeg, MB
|
not sure if this helps, but if I have a basic form up and I trap the KeyDown event, the arrows correspond to KeyCode's 37-40. So you could trap them with that event and move your object in whatever direction the keycode relates too.
Does that help?
__________________
"Breakfast? Breakfast schmekfast, look at the score for God's sake. It's only the second period and I'm winning 12-2. Breakfasts come and go, Rene, but Hartford, the Whale, they only beat Vancouver maybe once or twice in a lifetime." |
05-26-2003, 09:50 PM | #3 |
Go Reds
Join Date: May 2001
Location: Bloodbuzz Ohio
|
yes it did, thankyou
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|