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.