
05-13-2005, 12:13 AM
|
 |
Centurion
|
|
Join Date: Apr 2003
Location: KY (Home), ID (College)
Posts: 138
|
|
|
I'd recommend creating an array of flags for the keys; when the KeyDown event fires, set that key's flag. When the KeyUp event fires, unset it. When you update your character's position, check the key flags to see which way to move him and keep track of ticks to move him by a consistent amount per tick. This will give you time-based movement, relatively independent from machine specs.
|
|