playMaker

Author Topic: Activate FSM with picture as button  (Read 1558 times)

Shiro1994

  • Playmaker Newbie
  • *
  • Posts: 2
Activate FSM with picture as button
« on: July 04, 2017, 09:39:08 AM »
Hello!

I am new to Playmaker and I want to create some simple 2D click mechanics.
However, I do not like the default button style from Playmaker and therefore I wanted to connect a playmaker script with a separate button and activate the script via this button.

So my question is:
How can I activate a FSM with a custom button via an "On Click ()" function which can be found in the inspector from the button menu?
(You can find 2 pictures in the attachment)

Thank you very much in advance for your help!

(If there was an easier solution I would gladly accept it)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Activate FSM with picture as button
« Reply #1 on: July 04, 2017, 11:35:49 AM »
Hi,
Click on 'No Function' and go to PlaymakerFsm and chose "Send Event (String)
Then below it you can set the Event name that you want to use on the fsm that you dropped in below 'Runtime Only'

If you are looking for Ugui actions you can get the 'Ugui Proxy Full' on the Ecosystem

Shiro1994

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Activate FSM with picture as button
« Reply #2 on: July 04, 2017, 03:04:44 PM »
Thank you! It worked!  :) :) :)