playMaker

Author Topic: Buttom reset help  (Read 1445 times)

nabilfx

  • Full Member
  • ***
  • Posts: 186
Buttom reset help
« on: September 12, 2015, 05:52:59 PM »
I have 3 buttons, with three different objects in each, but when I press the button, the object appears, and when I press another button the object appears over the previous and not disappear, how can I fix this so when I press another button the object disappears and appears the button object that I am pressing,

im using PlayMaker Unity UI Proxy

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Buttom reset help
« Reply #1 on: September 12, 2015, 07:07:22 PM »
Hi,
if i understand correctly you have an fsm on each button?

the reason is because they are not resetting.
reset will only happen when the state is exited
(moved to another state on the same fsm)

try making it into 1 fsm :
make 3 event names : button1, button2, button3,
and set them as global transition for each state (with your activate gameobject action)

on the "Ugui Component proxy" component from each button click on the edit button and rename to button1 / button2 / button3

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Buttom reset help
« Reply #2 on: September 13, 2015, 11:01:12 AM »
thank you very much, works great!