Quote:
|
Originally Posted by jake13jake
this.mode != "jumping"
is not the same as !this.mode == "jumping"
apparently.
|
and it shouldn't be. You are saying the not of this.mode (which is a boolean) equals jumping (which is a string) So it -should- always return false, no matter what. To fix this just do: !(this.mode == "jumping")