Okay, but it normally makes no sense to press both keys - so this case will happen nearly never or only for a really short moment when the user switch the direction (key pressing).


Okay, imagine you have hundreds of characters, only moved by c_move if they can see you. Your two code options (both in a while) are:
Code:
if (CanSeePlayer) c_move(me, vector(7,0,0), nullvector, GLIDE);


or
Code:
c_move(me, vector(CanSeePlayer*7,0,0), nullvector, GLIDE);


... so, which one should be faster?
I guess the question is: Does c_move also cost "that much" CPU power when the result is that it doesn't move (like c_move(me, nullvector, nullvector, GLIDE)?



Last edited by Clemens; 02/01/11 17:25.