playMaker

Author Topic: 2d toolkit complete api actions  (Read 12351 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
2d toolkit complete api actions
« on: January 20, 2012, 12:28:58 AM »
Hi Everyone.

 Great day today. 2d toolkit set of actions is now freely available ( you still need to own playmaker and 2d toolkit tho...). Over 40+ actions to control sprites, animations and mesh.

https://hutonggames.fogbugz.com/default.asp?W717

 I have few more actions to build for fonts, but need to fiddle more to see if I should embed them within texMesh set actions or not. 2d toolkit buttons will also come next when the api will provide delegates ( coming soon from 2d toolkit).

We are living in a (very exiting but messy...) beta period, unity, playmaker and  2d toolkit are all under active development, so if you see any issues or bugs, don't hesitate or wonder if a weird behavior is a feature or a bug...  to report.

 Bye,

 Jean

 

 

netlander

  • Playmaker Newbie
  • *
  • Posts: 11
    • View Profile
Re: 2d toolkit complete api actions
« Reply #1 on: January 22, 2012, 01:09:40 AM »
Hello Jean,

That's great and it's really warming to know that TK2D and playMaker are constantly being pushed forward.

Just a note regarding some of the actions, the TextMash actions break under tk2d 1.5.0.

Keep up the good work
Cheers
Paul

--------------
Unity 3.4.2
playMaker 1.2.1
TK2D 1.5.0

« Last Edit: January 22, 2012, 01:19:32 AM by netlander »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: 2d toolkit complete api actions
« Reply #2 on: January 23, 2012, 01:56:15 AM »
Hi Paul,

 Which Action breaks? 2d toolkit, released a new version, this might solve the problems.

http://www.unikronsoftware.com/2dtoolkit/wiki/pmwiki.php/Main/ChangelogAndBetaVersions

I'll give another run of tests later on today and see if I can spot anything ( maybe the few set up I have doesn't break, I'll see).

 Bye,

 Jean

netlander

  • Playmaker Newbie
  • *
  • Posts: 11
    • View Profile
Re: 2d toolkit complete api actions
« Reply #3 on: January 23, 2012, 07:39:16 AM »
Hey Jean,

All the actions from TextMash category fail to compile due to missing variables in TK2D 1.5.0 text mesh class(es). We have here a couple of projects using TK2D 1.5.0 and they're not too happy with upgrading to the latest version.

If you have access to 1.5.0 you should see compilation errors as soon as you add the actions, I'm not sure if it's worth fixing the code to be backward compatible but if there are a lot of people in same situation then it might be worthwhile to provide a fix.

Cheers
Paul

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: 2d toolkit complete api actions
« Reply #4 on: January 23, 2012, 11:30:37 PM »
Hi,
 
 Ok I see. I was only regressing to the version available on the asset store which is 1.51, not 1.50

 1.51 introduced indeed a lot of new things for the textMesh ( inline styling, gradientTexture, better font support).

 I appreciate you might not want to upgrade all the way to the latest beta, but have you try to back up and upgrade to 1.51? or does that already cause trouble?

 Anyhow, I have removed actions and edited some to conform to 1.50.

You can download this compatible package from the official page, I have added an entry for this.
https://hutonggames.fogbugz.com/default.asp?W717

Tell me if that's suitable. If your team has more issues, don't hesitate, you can pm me too if you want.

 Bye,

 Jean
 


 Bye,

 Jean

netlander

  • Playmaker Newbie
  • *
  • Posts: 11
    • View Profile
Re: 2d toolkit complete api actions
« Reply #5 on: January 24, 2012, 01:47:08 AM »
have you try to back up and upgrade to 1.51? or does that already cause trouble?

Yeah we tried to upgrade but without much success...

Anyhow, I have removed actions and edited some to conform to 1.50.

Thank you for this.

Cheers
Paul

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: 2d toolkit complete api actions
« Reply #6 on: January 24, 2012, 04:23:54 AM »
Hi,

 OK.

 If you need new actions or modifications, don't hesitate to shout.

 Bye,

 Jean

mboog12

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: 2d toolkit complete api actions
« Reply #7 on: August 12, 2012, 11:21:43 AM »
Hello everyone,
I have an issue with the 2dtoolkit custom actions for playmaker.

I have a gameobject with a TK2dAnimatedSprite attached. The Anim Lib from the script has 3 animations: Idle, Walk and Hit.
The same gameobject also has a FSM script attached. In the first state i have added an action : Tk 2d Play Animation :
Game Object : Use Owner
Clip Name : Idle

However the Idle animation is not playing.
Could you please give me some hints ?
Regards!


UPDATE:  If I use the Stop Animation action it stops the animation that is currently playing. So it gets a reference to te AnimatedSprite component. The problem is the parameter name i'm sending "Idle"

UPDATE 2 : Ok, sorry for being a newb. In Tk2dPlayAnimation.cs there was a condition : if (_sprite.Playing == false) . Looks like i have to stop animations before playing anything new :D
« Last Edit: August 12, 2012, 11:45:31 AM by mboog12 »

lion-gv

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: 2d toolkit complete api actions
« Reply #8 on: October 23, 2012, 08:39:47 AM »
Why not remove this condition
Code: [Select]
if (_sprite.Playing == false)
from the script altogether?

Would there be some performance hit for not stopping the animation?

Or how about putting a stop animation in this script before the play animation? It isn't a huge deal but it is slightly cumbersome to put a stop animation action before every play animation action.


marcos

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 199
    • View Profile
Re: 2d toolkit complete api actions
« Reply #9 on: December 05, 2012, 09:21:21 PM »
Hey,

A quick question regarding the Text Mesh Set Text action.
I'm using this on a job at the moment, and it seems to be dropping some punctuation marks from the strings I am setting the text mesh to show, most notably apostrophes, but also some other bits and pieces. Is this an error with the action, or should I find a work around?

Thanks in advance,
Mark.

Edit: Perhaps I'm missing something in the text mesh gameobject itself?


Turns out the punctuation was a different character, one that wasn't available in the BM Font I had set up. Left my mistake here for future reference, feel free to delete if need be!
« Last Edit: December 05, 2012, 10:18:39 PM by marcos »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: 2d toolkit complete api actions
« Reply #10 on: December 11, 2012, 03:07:13 AM »
Hi,

 yep... went down that road too :) don't forget to put the "space" character as well, easily missed.

bye,

 Jean

Mayhem

  • Full Member
  • ***
  • Posts: 171
    • View Profile
Re: 2d toolkit complete api actions
« Reply #11 on: May 01, 2013, 11:16:01 AM »
I just wanted to know if the 2D Toolkit Actions are...up to date. The latest Version of 2D Toolkit is 1.9.2.
Are the PlayMaker-Actions compatible to the latest 2D Toolkit Version?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: 2d toolkit complete api actions
« Reply #12 on: May 02, 2013, 10:59:04 AM »
Hi,

 It all compiles ok without errors here, so I assume they do.

bye,

 Jean

harrisyu

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: 2d toolkit complete api actions
« Reply #13 on: June 07, 2013, 04:10:50 AM »
error in 2.0 since api change ...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: 2d toolkit complete api actions
« Reply #14 on: June 07, 2013, 04:17:00 AM »
Hi,

 Yes, the current bridge only supports pre v2 toolkit. Let me make a note on the wiki.

bye,

 JEan