summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-04-03 22:15:55 +0200
committerAki <nthirtyone@gmail.com>2017-04-03 22:15:55 +0200
commitcedc95538ded6ca0845f13e8ec2fdbf2b8c0c8ed (patch)
treebaacae28a53f41e999af83da9dc5ff643c524d4f
parent603fac3ce18ff7df7b8d2f74d5e57cc728c0abc2 (diff)
downloadroflnauts-cedc95538ded6ca0845f13e8ec2fdbf2b8c0c8ed.zip
roflnauts-cedc95538ded6ca0845f13e8ec2fdbf2b8c0c8ed.tar.gz
roflnauts-cedc95538ded6ca0845f13e8ec2fdbf2b8c0c8ed.tar.bz2
Missed applyLinearImpulse in Hero
-rw-r--r--not/Hero.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/not/Hero.lua b/not/Hero.lua
index 1cb5e93..ec7f39f 100644
--- a/not/Hero.lua
+++ b/not/Hero.lua
@@ -386,7 +386,7 @@ function Hero:damage (direction)
self:createEffect("hit")
local x,y = self:getLinearVelocity()
self:setLinearVelocity(x,0)
- self.body:applyLinearImpulse((42+10*self.combo)*horizontal, (68+10*self.combo)*vertical + 15)
+ self:applyLinearImpulse((42+10*self.combo)*horizontal, (68+10*self.combo)*vertical + 15)
self:setAnimation("damage")
self.combo = math.min(27, self.combo + 1)
self.punchcd = 0.08 + self.combo*0.006