if (key == 'w' ) //up
{
move = 1;
if(key == 's')
{
error = true;
cin.ignore();
}
}
i trying to do ,if the key is up ,it cannot be down ,and it will cont to move the up Key
but from my coding above,it does nt success
anyone can give some hints or idea to do it ?


Sign In
Create Account


Back to top









