diff options
author | Aki <nthirtyone@gmail.com> | 2016-07-16 06:34:26 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-07-16 06:34:26 +0200 |
commit | cf64402b9221a74be86748aaebe6910d544cb33b (patch) | |
tree | 6db3cbd9ea5cab3a6d81425d07f152f2695607d4 | |
parent | 937f24699ce35a0c42b67c0fa8c1de8b9947b6a0 (diff) | |
download | roflnauts-cf64402b9221a74be86748aaebe6910d544cb33b.zip roflnauts-cf64402b9221a74be86748aaebe6910d544cb33b.tar.gz roflnauts-cf64402b9221a74be86748aaebe6910d544cb33b.tar.bz2 |
Fixed animation issue on punch and walk
-rw-r--r-- | player.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -227,7 +227,10 @@ function Player:controllerPressed (key) end -- Walking - if key == "left" or key == "right" then + if (key == "left" or key == "right") and + (self.current ~= self.animations.attack) and + (self.current ~= self.animations.attack_up) and + (self.current ~= self.animations.attack_down) then self:changeAnimation("walk") end |