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.


Messages - 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  ;)

2
Support / Re: Change sprite collection for an animation library?
« on: June 12, 2013, 09:33:19 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 I create a sprite animator at runtime.  I知 developing a game where depending on a random number a different animation has to be displayed.
Currently I知 using this code:
public tk2dSpriteAnimator anim;
GameObject two = new GameObject ();
anim = two.AddComponent<tk2dSpriteAnimator>();
The problem with this code is that Unity shows this error:
Sprite not found attached to tk2dSpriteAnimator.
I will appreciate your help!

3
Support / Re: Can I redefine SpriteCollection at runtime?
« on: June 12, 2013, 09:32:27 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 I create a sprite animator at runtime.  I知 developing a game where depending on a random number a different animation has to be displayed.
Currently I知 using this code:
public tk2dSpriteAnimator anim;
GameObject two = new GameObject ();
anim = two.AddComponent<tk2dSpriteAnimator>();
The problem with this code is that Unity shows this error:
Sprite not found attached to tk2dSpriteAnimator.
I will appreciate your help!

4
Support / Re: Basic question(s) on creating sprites during runtime
« on: June 12, 2013, 09:31:30 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 I create a sprite animator at runtime.  I知 developing a game where depending on a random number a different animation has to be displayed.
Currently I知 using this code:
public tk2dSpriteAnimator anim;
GameObject two = new GameObject ();
anim = two.AddComponent<tk2dSpriteAnimator>();
The problem with this code is that Unity show this error:
Sprite not found attached to tk2dSpriteAnimator.

I will appreciate your help!

Pages: [1]