|
-
May 5th, 2002, 08:21 PM
#1
Thread Starter
New Member
Complicated keydown question
Hey, I'm making and RPG for my programming class(I'm in highschool) and I have come across a problem. When you press a key to start walking right, I want it to start walking at full speed, but instead, it moves one space, then pauses, then starts moving at full speed. Does any one know how to fix this prob?
If you do, please respond.
Danke.
--gu1d0m4n
-
May 5th, 2002, 08:25 PM
#2
Post your keydown code, and any relevent code.
Z.
-
May 6th, 2002, 12:41 AM
#3
Good Ol' Platypus
What you need to do is use the GetAsyncKeyState API instead of the internal KeyDown event that VB gives you. Do this in a Do... Loop basis and it will work out fine. If you're using a Timer already to do your movement, then put it in that and you're all set. KeyDown has its own quirks... 
You can find out about GetAsyncKeyState at http://www.allapi.net/ and maybe by a search here at VBForums.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
May 6th, 2002, 08:02 AM
#4
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|