Front Office Football Central  

Go Back   Front Office Football Central > Archives > FOFC Archive
Register FAQ Members List Calendar Mark Forums Read Statistics

Reply
 
Thread Tools
Old 05-23-2003, 12:26 PM   #1
korme
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.

korme is offline   Reply With Quote
Old 05-23-2003, 01:11 PM   #2
Fidatelo
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."
Fidatelo is offline   Reply With Quote
Old 05-26-2003, 09:50 PM   #3
korme
Go Reds
 
Join Date: May 2001
Location: Bloodbuzz Ohio
yes it did, thankyou
korme is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -5. The time now is 02:50 AM.



Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.