Hi everybody!
Im working on some tool, that will allow me to import animations for displayObjects from xml file.
now, the main loop for playing animation looks this way(tweak exmple from http://developer.anscamobile.com/content/animation#comment-42405):
[lua]frameInc = 1
pass = function()
if frameInc frameInc = frameInc + 1
transition.to(self.image, {time=self.Animation.TimePerFrame, onComplete=pass, x= self.image.x + v.Frames[frameInc].Pos[1], y= self.image.y + v.Frames[frameInc].Pos[2] … etc)
end
end
pass()[/lua]
it loops thgough the frames and move sprite in series.
everything works like a charm… BUT 
if i want play animation few times in a row, by calling
obj:play(animFile)
obj:play(animFile)
obj:play(animFile)
it start all function simultaneously and sprite moves strange.
And i want it to plays in order. one by one.
Can somebody help me, please?Maybe, i choose wrong technique to play animation at all? [import]uid: 41345 topic_id: 12761 reply_id: 312761[/import]