Thread: Possible?
View Single Post
  #22  
Old 05-18-2002, 11:02 PM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
Quote:
Originally posted by Falcor
It would be more efficient to check if the player is acually moving than pressing buttons. I also would like to add that

if(condition1 || alikecondition2 || alikecondition3 || alikecondition4 || alikecondition5 || etc etc)

isnt a good programming habbit.
True but in this case a for loop would not work as it would return a var unexpected some times because you need to check all keys at once.
Reply With Quote