Thread: -keyNOTdown(i)
View Single Post
  #8  
Old 01-06-2004, 07:39 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote