1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-07-02 00:10:21 +02:00

added animation loop flag

This commit is contained in:
TenPlus1
2017-06-23 08:57:51 +01:00
parent 0d27bbe02d
commit 53563fe430
2 changed files with 8 additions and 6 deletions

10
api.lua
View File

@ -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