So I use anim8 to make some animation with classic:
Code: Select all
local g = anim8.newGrid (...)
ani_1 = anim8.newAnimation(...)
ani_2 = anim8.newAnimation(...)
ani_list = [ani_1,ani_2]
function update(t)
ani_list:update(t)
end
function draw()
ani_1:draw
ani_2:draw
end
How could I generate animation individually for each of my object and start when they're create ?
Cause try several method like clone() (don't guess this is the way to use this function) but ain't works:
Code: Select all
ani_1_ = anim8.newAnimation(...)
ani_1 = ani_1:clone()
obj_list = {{1,anim=ani_1},{2,anim=ani_1}}
--object are not create at the same time in the list
for i, o in ipairs(obj_list) do
o.anim:draw(...)
end
Regards