summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-06-23 08:57:51 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-06-23 08:57:51 +0100
commit53563fe43088b18cdcc8577a43627d7bf0c0bdcf (patch)
tree666b8d8c31a73e12772c97debc44adab1f5f212f /api.lua
parent0d27bbe02da67ed6bdf9a171179077919b23eba4 (diff)
added animation loop flag
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/api.lua b/api.lua
index df33ec1..f56f36a 100644
--- a/api.lua
+++ b/api.lua
@@ -1,9 +1,9 @@
--- Mobs Api (19th June 2017)
+-- Mobs Api (23rd June 2017)
mobs = {}
mobs.mod = "redo"
-mobs.version = "20170619"
+mobs.version = "20170623"
-- Intllib
@@ -157,9 +157,9 @@ local set_animation = function(self, anim)
self.object:set_animation({
x = self.animation[anim .. "_start"],
- y = self.animation[anim .. "_end"]
- }, self.animation[anim .. "_speed"] or self.animation.speed_normal or 15)
-
+ y = self.animation[anim .. "_end"]},
+ self.animation[anim .. "_speed"] or self.animation.speed_normal or 15,
+ 0, self.animation[anim .. "_loop"] ~= false)
end