Jump to content

  • Log In with Google      Sign In   
  • Create Account


Move heroes


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Alexiev   Members   -  Reputation: 122

Like
Likes
Like

Posted 11 February 2002 - 01:45 AM

I don''t know how can I make my heros move light in VB. I just want to know how can I understand if key is press. Not to write from Keyboard buffer and wait 1/4 sec after first read from buffer.

Sponsor:

#2 krez   GDNet+   -  Reputation: 443

Like
Likes
Like

Posted 11 February 2002 - 04:44 PM

use the KeyDown and KeyUp events... whenever a key is pressed, the KeyDown event is called with the "KeyCode" number of the key. KeyUp is called when you release the key.
you will have to keep track of what keys are held down (as you only get one event when you push the key, not many repeatedly like the KeyPress event)... you can do this with an array of boolean values (for if a key is held down or not).
HTH.

--- krez (krezisback@aol.com)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS