playMaker

Author Topic: How to link 2d animation with PlayMaker?  (Read 2529 times)

Sly

  • Full Member
  • ***
  • Posts: 127
How to link 2d animation with PlayMaker?
« on: August 09, 2013, 11:02:52 AM »
I'm actually using the 2D jump & run framework asset. It's for making 2d platformer game. (see link)
http://forum.unity3d.com/threads/90374-Released-2D-Jump-n-Run-Framework

But I'm trying to play animation using playmaker. The problem is the action PlayAnimation does not recognize the 2D animation. It required the component Animation.

The thing is I'm using the script Animation 2D. Is there a way to link this with playmaker, having a way to control my animation?

Can someone help me? How to do that, or how can I create a new action for this (or modify the actual Playmaker Play animation action).
Thanks

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4257
  • Official Playmaker Support
    • LinkedIn
Re: How to link 2d animation with PlayMaker?
« Reply #1 on: August 09, 2013, 09:53:56 PM »
Playmaker has some generic ways to work with scripts.

If you know the name of the method you want to call you can use Send Message or Invoke Method actions.

If there are public fields or properties in components that you want to get or set you can use Get Property and Set Property actions.

First thing I would do is figure out what's exposed in the framework and try playing with that... you might need some custom actions, but it's hard to say until you poke around a bit.

Sly

  • Full Member
  • ***
  • Posts: 127
Re: How to link 2d animation with PlayMaker?
« Reply #2 on: August 12, 2013, 08:29:58 AM »
The 2D Jump'n'Run Framework is using the script Animation 2D (basic unity script). But apparently for link animation in Playmaker we need to use the component Animation. That's why my 2d animation are not recognize into Playmaker. The animation component manage 3d animation so I can't create my actual animation in this component.

Following your advice, I'm gonna check this.
Thanks for you help!
I will let us know if I can find something.

hofik001

  • Playmaker Newbie
  • *
  • Posts: 2
Re: How to link 2d animation with PlayMaker?
« Reply #3 on: March 14, 2014, 07:21:38 PM »
I do it using a script and developing links with Playmaker
That's going to play and create any animation when some action.