edited January 2014 in ORK Support
Heya GiL,

Thanks again for adding these generic components, they're fantastic.

I had a quick question about accessing a certain public property documented in here:

http://www.unikronsoftware.com/2dtoolkit/docs/2.00/html/classtk2d_sprite_animator.html#details

tk2dSpriteAnimationClip tk2dSpriteAnimator.CurrentClip [get]

What this would do, in theory, is return the name of the current AnimationClip playing.

I'm sure I'm missing something incredibly simple, but how would I set up my Check Fields (Or Check Function) node to access that String?
Post edited by gamingislove on
Tactics RPG Grid Battle System for ORK
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames
  • You can't do that, since this doesn't return a string - it returns the tk2dSpriteAnimationClip class.

    You'd either need to find a different method, field or property that returns the actual name, or write yourself a small helper component that'll get the name and return it :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited January 2014
    Ahh, I see. Stupid of me not to notice that, thanks! Found a better property to use that returns a bool. :D
    Post edited by Kirb on
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
Sign In or Register to comment.