playMaker

Author Topic: 2k toolkit play animation help  (Read 3325 times)

Hendo

  • Playmaker Newbie
  • *
  • Posts: 1
2k toolkit play animation help
« on: November 22, 2014, 08:38:11 AM »
Hi

im getting these errors while using the Tk 2d play animation action

-Unable to find clip 'Idle' in library
-Calling clip.Play() with a null clip

i have 3 tk 2d sprite animator components on my animated sprite. when i use the above action to play the first animation component it plays the action properly but the other two do not. Whichever component is first plays properly but the other 2 always show the above error.

when i click the play automatically button to test out the 3 animations on my sprite they all play correctly but when i try to activate them using the play animation action the first animation component on the list works but the other 2 do not.

anybody else had this problem???

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 2k toolkit play animation help
« Reply #1 on: November 24, 2014, 02:21:15 AM »
Hi,

 This action only get the first component on the gameobject, so if you have 3, 2 of them will not be called at all.

 I think should only have one sprite per gameobject. Can you confirm this with on the 2d toolkit forum, cause if indeed it's a common use to have several animator on a single gameobject, then this action needs a way to reference a particular component, not just assume that just one is present.

 Bye,

 Jean