playMaker

Author Topic: Is there an action that perform gameobject fade out/in?  (Read 2364 times)

merlinlain

  • Playmaker Newbie
  • *
  • Posts: 3
Is there an action that perform gameobject fade out/in?
« on: May 23, 2012, 12:44:34 AM »
Is there an action that perform gameobject fade out/in?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Is there an action that perform gameobject fade out/in?
« Reply #1 on: May 23, 2012, 01:28:29 AM »
Hi,

 yes, there is kind of. It's a bit involving tho.

basically,

1: you need to have a transparent material applied to it, so if you have a diffuse, switch to "transparent diffuse" so that you can control the alpha channel.

2: have the color in a FsmColor variable, and animate the alpha channel to fade in or out.

3: use the action "Set material Color", https://hutonggames.fogbugz.com/default.asp?W380  and plug this Fsmcolor you are animating.

 If you need a working example, let me know.

 Bye,

 Jean

DarrenDelorme

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Is there an action that perform gameobject fade out/in?
« Reply #2 on: November 07, 2013, 07:03:47 PM »
Hi would you be able to make an example for this please. Im trying to make a object I'm using as a button appear/fade in when it reaches a certain point in my animation.

Also how come all of the itween options are not available in the plugin. on itweens site they have an option to Fadeto.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Is there an action that perform gameobject fade out/in?
« Reply #3 on: November 11, 2013, 12:31:16 AM »
Hi,

 Is it a 3d object or is it suppoed to be a UI object? Are you using a 2d framework in your project? like ngui or 2dtk?

bye,

 Jean