Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: bloodymin on February 17, 2013, 09:08:03 AM

Title: [Solved]I couldn't see any of my tk2d resoucre in Clip name list
Post by: bloodymin on February 17, 2013, 09:08:03 AM
I purchased playMaker and 2Dtoolkit for my test project.

my main character was created as tk2d animated sprite and It works without using playMaker.

But i still want to know how to use playMaker for my project

I tried to add state to my main character and put actions, TK 2d Play Animation, Clip name box only

shows message "none", i did drag and drop and several useless tries, but still doesn't work.

I just want to know how to attached my tk2d animation sprites for playmaker
Title: Re: I couldn't see any of my tk2d resoucre in Clip name list
Post by: will_brett on February 17, 2013, 09:10:43 AM
Just type the name in manually. Thats what I do.

Say I have a clip attached to an animated sprite object in the hierarchy. The clips name is "Jump".

Add an FSM to the animated sprite... then go to your actions and add the 2D toolkit play animation. Under clip name just type in Jump.
Title: Re: I couldn't see any of my tk2d resoucre in Clip name list
Post by: jeanfabre on February 18, 2013, 12:51:26 AM
Hi,

 yes, Will is right, you need to manually input your clip name. I haven't got that far as parsing data from 2dtk to get the list, that would be quite involving indeed... but not impossible.

bye,

 Jean
Title: Re: I couldn't see any of my tk2d resoucre in Clip name list
Post by: bloodymin on February 18, 2013, 11:02:08 AM
thank you guys reply really help me alot

but even i did type it and run fsm, it didn't show any errors but

i still could get animation on screen. :( please help me to find reason
Title: Re: I couldn't see any of my tk2d resoucre in Clip name list
Post by: bloodymin on February 19, 2013, 01:11:37 AM
I think "Tk2d play animation" action event seemed not working. 

i will find other way to solve this problem.

but if you guys know how to solve it,
 can you please give me sample with tk2d demo animation, Tk2d animated sprite.   :'( 
Title: Re: I couldn't see any of my tk2d resoucre in Clip name list
Post by: jeanfabre on February 19, 2013, 01:42:52 AM
Hi,

 if you could also make sure that "run" is also features within 2dtk, maybe its "Run" or something? Could you double check.

what did you use in the end?

bye,

 Jean
Title: Re: I couldn't see any of my tk2d resoucre in Clip name list
Post by: will_brett on February 19, 2013, 11:03:56 AM
From your images it's not entirely clear what the issue is.

When you created your animated sprite by clicking create in the hierarchy menu, did u name that animated sprite noahrun?

Also did you want the animation to play on a button press or just play when the game starts?

If you want it to play on buttonpress/key down move the play tk2d animation action to the second state.

Also if you go to your project panel and click the sprite animation in there and the click editor... what are your wrap settings?
Title: Re: I couldn't see any of my tk2d resoucre in Clip name list
Post by: bloodymin on February 19, 2013, 09:49:32 PM
Thanks you guys

It worked without playmaker. but finally i found out reason why i couldn't run animation sprite with certain state.

It didn't works when i used "specify Game Object option" in Tk2 d play animation action.

But it perfectly working when i using use Owner.

Sorry guys, it all came from my stupid mistake. 
 ;)
Title: Re: I couldn't see any of my tk2d resoucre in Clip name list
Post by: bloodymin on February 19, 2013, 09:54:14 PM
after escaping from this issue, i really happy with working playMaker, it saved time alot. :)