Quote:
Originally posted by wonderboysp2p
else if (!keydown(0)) set ani idle,;
i had this but it screws up the walk ani X_X
|
well.. that's because your condition is all messed up, and not having brackets doesn't help much either. I would write that same line of code as the following:
If you wanted it to be detected when keydown(0) then:
if (!keydown(0)) {
whatever;
}
else {
setani idle,;
}
If you wanted it to
not be detected when keydown(0) then:
if (!keydown(0)) {
setani idle,;
}
And you'd want to make sure with the !keydown that you'd have a timeout or something... I'm not sure if it's the same with keydown considering the fact that I don't use keydown much.