Dear developers of LimeJS,
for animation i use useful example from
http://www.limejs.com/2011/02/21/introducing-sprite-sheets
but it is strange for me one moment ....
Why it is necessary to use "addFrame" before each play of animation?
Example of code:
test.moveToPosition = function(monster,pos){
...
// keyframe animation
var anim = new lime.animation.KeyframeAnimation();
for(var i=1;i<=7;i++){ //add the frames
anim.addFrame(test.ss.getFrame('walking-'+dir+'000'+i+'.png'));
}
monster.runAction(anim);
...
};
Is it possible to set one time a set of frames? (It will decrease
amount of work for processor before play of animation.)
And when it is necessary to call runAction() only.
thank you in advance for you answer,
Vlad