Update Mobs Redo

This commit is contained in:
Wuzzy 2017-07-29 13:34:27 +02:00
parent ef1ad641cb
commit dc709ff35a
1 changed files with 10 additions and 2 deletions

View File

@ -1658,7 +1658,11 @@ local do_states = function(self, dtime)
set_velocity(self, self.run_velocity) set_velocity(self, self.run_velocity)
end end
if self.animation and self.animation.run_start then
set_animation(self, "run") set_animation(self, "run")
else
set_animation(self, "walk")
end
else else
set_velocity(self, 0) set_velocity(self, 0)
set_animation(self, "punch") set_animation(self, "punch")
@ -1831,7 +1835,11 @@ local do_states = function(self, dtime)
set_velocity(self, self.run_velocity) set_velocity(self, self.run_velocity)
end end
if self.animation and self.animation.run_start then
set_animation(self, "run") set_animation(self, "run")
else
set_animation(self, "walk")
end
end end
else -- rnd: if inside reach range else -- rnd: if inside reach range