playMaker

Author Topic: Having problem with a Button Broadcasting an Event  (Read 2002 times)

ilovelessons

  • Junior Playmaker
  • **
  • Posts: 70
Having problem with a Button Broadcasting an Event
« on: April 01, 2017, 01:50:56 PM »
Hi,

I am having a problem a simple  one I believe which I cannot figure out. Here what I am trying to do (I also attached a picture)-

1. I created a button using Create --> UI --> Button
2.  I then added the component "Play Maker U GUI Component Proxy (Script)"

When  I click the button I want it to go to a GLOBAL EVENT in Main_Menu_Logic. Thats all I wanted it to do.  I filled out the fields perfectly, doubled checked all my spelling. When I click the button nothing happens.. it does not go to "JUMP_TO_HERE".

what am I doing wrong.. I know I looked at a video doing this and it worked once already.. but I can't figure out what I am doing wrong this time.

The video link is below and at the time around 11:40.



Any advice?
Thanks

Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: Having problem with a Button Broadcasting an Event
« Reply #1 on: April 01, 2017, 03:37:42 PM »
hi, if you used a UI button then all you have to do is click the plus sign on the onlick feild and then drag the game object with the fsm global event into the object slot and the click on the functions go down to fsm and select send event, in the field you see just type your global event in there  e.g "jump_to_here"and you're good to go.
else add a button component and follow the same steps.

onclick -> drag game object with global event into onlcick slot -> select playmaker fsm under functions -> select send event in the drop down -> type global event in the slot

ilovelessons

  • Junior Playmaker
  • **
  • Posts: 70
Re: Having problem with a Button Broadcasting an Event
« Reply #2 on: April 01, 2017, 04:57:59 PM »
Hi,

I tried all of what you said but it didn't work.  Shouldn't BROADCAST ALL automatically look for the Global Event and go to it?

Thanks BTW

ilovelessons

  • Junior Playmaker
  • **
  • Posts: 70
Re: Having problem with a Button Broadcasting an Event
« Reply #3 on: April 01, 2017, 05:00:51 PM »
Hi I found the error... I forgot to add the Playmaker U GUI to the Hierarchy .. GAHHHH i wasted a whole  day on this !!!!  GAHHHH lol....

Thanks for all the help guys :D

Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: Having problem with a Button Broadcasting an Event
« Reply #4 on: April 01, 2017, 09:19:55 PM »
haha no problem

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Having problem with a Button Broadcasting an Event
« Reply #5 on: April 04, 2017, 01:30:55 AM »
Hi,

 yeah, I need to consolidate this because it's an easy miss...

Bye,

 Jean