2D Toolkit Forum

2D Toolkit => Support => Topic started by: Tylernocks on May 04, 2013, 07:45:23 am

Title: Converting .fbx animation to 2D Toolkit
Post by: Tylernocks on May 04, 2013, 07:45:23 am
I Was following 3D Buzz Tutorial when I encountered a problem, how might one go about
turning
Code: [Select]
   void Using()
  {
       if(!animation.isPlaying)
          {
                State = CharacterState.Idle;
          }
  }


into a 2D Toolkit anim type.
Title: Re: Converting .fbx animation to 2D Toolkit
Post by: unikronsoftware on May 04, 2013, 10:38:04 am
You cant. They are compeltely different animation types.
2D Toolkit animations are sequences of 2D sprites, whereas fbx animations are animations on 3d objects and geometry.

Edit: You can attach a sprite to an object which is being animated by an fbx animation though.
Title: Re: Converting .fbx animation to 2D Toolkit
Post by: Tylernocks on May 04, 2013, 06:05:31 pm
I think I said that wrong, I meant, what is the 2D Toolkit equivalent.
Title: Re: Converting .fbx animation to 2D Toolkit
Post by: dotty on May 04, 2013, 08:29:50 pm
http://www.unikronsoftware.com/2dtoolkit/doc/html/classtk2d_sprite_animation.html
Title: Re: Converting .fbx animation to 2D Toolkit
Post by: dotty on May 04, 2013, 08:34:04 pm
..and the tuts are at http://www.unikronsoftware.com/2dtoolkit/doc/tutorial/creating_a_sprite_animation_190.html
Title: Re: Converting .fbx animation to 2D Toolkit
Post by: Tylernocks on May 05, 2013, 03:11:25 am
Thanks but thats not exactly what I need, I just need the equivalent not a tutorial.
Title: Re: Converting .fbx animation to 2D Toolkit
Post by: unikronsoftware on May 05, 2013, 03:20:55 am
An equivalent of what exactly?
You're comparing animating 3D objects in fbx to frame list animation in 2D - there is no equivalent.

As mentioned in a previous post, you can attach a sprite to an fbx animation.
Alternatively you can use the Unity animation system to animate sprites, but there is no "equivalent" to fbx animation, they are completely different things.
Title: Re: Converting .fbx animation to 2D Toolkit
Post by: Tylernocks on May 05, 2013, 06:08:58 am
Well, here's what the description for Animation.isPlaying

"Is the animation named name playing?" This is from the unity script reference btw http://docs.unity3d.com/Documentation/ScriptReference/Animation.IsPlaying.html

So I was wondering how to script using 2D Toolkit "is the animation "named name" not playing."
Title: Re: Converting .fbx animation to 2D Toolkit
Post by: unikronsoftware on May 05, 2013, 12:09:48 pm
The equivalent to that function is:
http://unikronsoftware.com/2dtoolkit/doc/html/classtk2d_animated_sprite.html#abafcc0f02cf37866f3a149c80f13f448

As mentioned before they are 2 completely different systems. Dig through the docs above & the tutorials linked by dotty to understand how this works.
Title: Re: Converting .fbx animation to 2D Toolkit
Post by: Tylernocks on May 06, 2013, 12:52:00 am
Yup, There it is, that's the answer I wanted, Thanks!!! :)