Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Tina

Pages: [1]
1
Support / Change clip Id SpriteAnimator at runtime
« on: June 19, 2013, 10:54:12 pm »
Hi,

I'm currently working in a 2d game in the newest version of the 2d toolkit and I would like to know how to change the clip Id of the Sprite Animator at runtime?
I mean, I have five different collections each one with different sprites. I also have a Sprite Animator for each collection and inside of my Sprite Animator I have two different clips.
When the game start automatically runs the first animation, but I need that at runtime when some variables change my animation also changes to the second one.
How can I do that? I hope to have been clear with my explication.

Thanks  ;)

Pages: [1]