the second script cannot work:

if key w is not pressed (!key_w), your player will move 20Q

coincident if key s is not pressed (!key_s), your player will move -20Q

This combination cannot work. Which kind of movement do you want? The movement does not seem to be functionally!

Code:
while (1)
{
   if (key_w)
      move_var.y += 20;
   if (key_s)
      move_var.y -= 20;
}





Last edited by MPQ; 03/01/09 10:33.

new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com