summaryrefslogtreecommitdiffhomepage
path: root/not/Player.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2018-04-09 02:23:13 +0200
committerAki <nthirtyone@gmail.com>2018-04-09 02:23:13 +0200
commit4e2ad54590449037e4c35e26b285638029c8282d (patch)
tree087f02f45bbf3e1a45e1b704294613b90dcea04e /not/Player.lua
parentc36b981f54d22c3891856c64b6be780815e8b7df (diff)
downloadroflnauts-4e2ad54590449037e4c35e26b285638029c8282d.zip
roflnauts-4e2ad54590449037e4c35e26b285638029c8282d.tar.gz
roflnauts-4e2ad54590449037e4c35e26b285638029c8282d.tar.bz2
Added onWalkingStopped and moved animation changes there from Player
Diffstat (limited to 'not/Player.lua')
-rw-r--r--not/Player.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/not/Player.lua b/not/Player.lua
index 5e73e25..b33e229 100644
--- a/not/Player.lua
+++ b/not/Player.lua
@@ -65,14 +65,6 @@ function Player:controlreleased (set, action, key)
if action == "jump" then
self.jumpTimer = Hero.JUMP_TIMER
end
- -- Walking
- if (action == "left" or action == "right") then
- if not (self:isControlDown("left") or self:isControlDown("right")) then
- if self.current == self.animations.walk then
- self:setAnimation("default")
- end
- end
- end
end
return Player