Thread: Key numbers?
View Single Post
  #4  
Old 08-04-2009, 05:12 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
You could use a loop like such:

PHP Code:
//#CLIENTSIDE
function onKeyPressed() {
  for (
temp.key 0temp.key 4temp.key++) {
    if (
keydown(key)) { //If the player has pressed a movement key
      //Do Stuff
    
}
  }

Reply With Quote