Hi I’m building an app for Ipad, I´m using spriteloq to export an animation
My animation is split into two sheets and I´m trying to join them by code but it doesn´t look soo good, can you help me?
[code]
local loqsprite = require(‘loq_sprite’)
local pista1=false
local pista2=false
local spriteFactoryPista = loqsprite.newFactory(‘tierra1_dia’)
local spriteFactoryArena = loqsprite.newFactory(‘tierra2_dia’)
local parte1 = spriteFactoryPista:newSpriteGroup()
local parte2=spriteFactoryArena:newSpriteGroup()
local function next2(self, event)
if event.phase==‘end’ then
parte2.alpha=0
–parte1:currentFrame(1)
parte1:play();
parte1.alpha=1;
end
end
local function next(self,event )
if event.phase==‘end’ then
–parte2:currentFrame(1)
parte2.alpha=1
parte2.sprite=next2;
–parte2:addEventListener(‘sprite’,parte2)
parte2:play()
parte1.alpha=0;
end
end
parte1.sprite=next;
parte1:addEventListener(‘sprite’,parte1)
parte1:play()
parte2.alpha=0
[/code] [import]uid: 82653 topic_id: 20865 reply_id: 100428[/import]