1
Support / Is it possible to create an animation via code?
« on: February 22, 2012, 10:26:25 pm »
This post has been really helpful, but I'm wondering if I can take it further. Is it possible to create the anim via code - selecting the sprite collection, setting up the clips, listing the frames for each clip? I had a go, but I got as far as not being able to create a tk2dSpriteAnimation using new because it's a MonoBehaviour and needs to be attached as a component. At this point, I'm trying to create the animation so I can attach it to objects as a component.