Hello Guest

Author Topic: Converting .fbx animation to 2D Toolkit  (Read 9232 times)

Tylernocks

  • Newbie
  • *
  • Posts: 15
    • View Profile
Converting .fbx animation to 2D Toolkit
« 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Converting .fbx animation to 2D Toolkit
« Reply #1 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.

Tylernocks

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Converting .fbx animation to 2D Toolkit
« Reply #2 on: May 04, 2013, 06:05:31 pm »
I think I said that wrong, I meant, what is the 2D Toolkit equivalent.

dotty

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 65
    • View Profile

dotty

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 65
    • View Profile

Tylernocks

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Converting .fbx animation to 2D Toolkit
« Reply #5 on: May 05, 2013, 03:11:25 am »
Thanks but thats not exactly what I need, I just need the equivalent not a tutorial.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Converting .fbx animation to 2D Toolkit
« Reply #6 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.

Tylernocks

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Converting .fbx animation to 2D Toolkit
« Reply #7 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."

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Converting .fbx animation to 2D Toolkit
« Reply #8 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.

Tylernocks

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Converting .fbx animation to 2D Toolkit
« Reply #9 on: May 06, 2013, 12:52:00 am »
Yup, There it is, that's the answer I wanted, Thanks!!! :)