I need a code to eliminate moonwalking
no urgency
char *key=GetKeyState();
if (key[KEY_LEFT]==1&&key[KEY_RIGHT]==0)x-=5;
else if(key[KEY_LEFT]==0&&[KEY_RIGHT]==1)x+=5
char *key=GetKeyState();
if (key[KEY_LEFT]==0&&key[KEY_RIGHT]==1) ChangeAnimation("Event Actor", "walkr", FORWARD);
else if(key[KEY_LEFT]==1&&key[KEY_RIGHT]==1) ChangeAnimation("Event Actor", "standr", FORWARD);\
char *key=GetKeyState();
if (key[KEY_LEFT]==1&&key[KEY_RIGHT]==0) ChangeAnimation("Event Actor", "walkl", FORWARD);
else if(key[KEY_LEFT]==1&&key[KEY_RIGHT]==1) ChangeAnimation("Event Actor", "standl", FORWARD);
char *key=GetKeyState();
if (key[KEY_LEFT]==1&&key[KEY_RIGHT]==0) ChangeAnimation("Event Actor", "walkl", FORWARD);
else if(key[KEY_LEFT]==0&&key[KEY_RIGHT]==0) ChangeAnimation("Event Actor", "standr", FORWARD);
char *key=GetKeyState();
if (key[KEY_LEFT]==0&&key[KEY_RIGHT]==1) ChangeAnimation("Event Actor", "walkr", FORWARD);
else if(key[KEY_LEFT]==0&&key[KEY_RIGHT]==0) ChangeAnimation("Event Actor", "standl", FORWARD);
char*key=GetKeyState();
if (key[KEY_LEFT]==1&&key[KEY_RIGHT]==0)x-=5;
else if(key[KEY_LEFT]==0&&key[KEY_RIGHT]==1)x+=5;
char*key=GetKeyState();
if (key[KEY_LEFT]==1&&key[KEY_RIGHT]==0)x-=5;
else if(key[KEY_LEFT]==0&&key[KEY_RIGHT]==1)x+=5;
char*key=GetKeyState();
if (key[KEY_A]==1&&key[KEY_D]==0)x-=5;
else if(key[KEY_A]==0&&key[KEY_D]==1)x+=5;
Users browsing this forum: No registered users and 1 guest