fix animation flip

This commit is contained in:
TenPlus1 2018-08-03 10:06:05 +01:00
parent 0482581f18
commit da0238cb84
1 changed files with 6 additions and 0 deletions

View File

@ -182,6 +182,12 @@ local set_animation = function(self, anim)
self.animation.current = self.animation.current or ""
-- only set different animation
if anim ~= "punch" and anim ~= "shoot"
and string.find(self.animation.current, anim) then
return
end
-- check for more than one animation
local num = 0