It looks like you're new here. If you want to get involved, click one of these buttons!
local animLoader = CTNTAnimatorLoader.new() animLoader:loadAnimations("Animations/atlas-2-animation.tan", atlas, true) local anim = CTNTAnimator.new(animLoader) anim:setAnimation("CAVEMAN_FALLING") anim:addToParent(anim) self:addChild(anim) self.myAnimation = anim; anim:playAnimation() |
Comments
i really need to see your class to try to help you, anyway
you should avoid to call
generally i load my anim gfx not inside critical loops of my game and free it
in the same manner.
www.tntengine.com
I found that if I put this part on a scene:
-- Setup animation loaders for atlases
And another HUGE thank you for both TNT Animator and your particle engine. I use them both a great deal.