playMaker

Author Topic: How to setup a slider using Mega-Modifiers Morph?  (Read 2017 times)

Adam Z

  • Full Member
  • ***
  • Posts: 207
How to setup a slider using Mega-Modifiers Morph?
« on: April 08, 2013, 10:04:52 AM »
I have the two .cs scripts within my Actions folder. I read this:
"Create a Fsm Object variable, set its class to "MegaModifier", point it to the gameObject you want to control, and then use the action "set property", use that Fsm Object you have created, and you will access all the properties ( including the one I expose in this action). so you can pretty much control any component ( not just Mega Fiers ones)  anything this way."

This is a bit confusing to me, but what I have done so far is on my Game Object with Mega Morph applied, I have a 'Megafiers Set Morph Percent By Name' attached. That is set to my morph name.

On my Camera I have a 'GUI Horizontal Slider' applied in which I needed to create a Float variable for it.

Do I attach the variable 'MegaModifier' to the Game Object or the Camera? And how about the Set property Action?

I tried various combinations and I can't get it to work. Any help would greatly be appreciated!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to setup a slider using Mega-Modifiers Morph?
« Reply #1 on: April 09, 2013, 02:12:25 AM »
Hi,

 the key is to use the custom actions I did a while ago.

http://hutonggames.com/playmakerforum/index.php?topic=1726.msg16440#msg16440


bye,

 Jean