playMaker

Author Topic: Toggle multiple game object on Mouse Over  (Read 1511 times)

detomato

  • Playmaker Newbie
  • *
  • Posts: 36
Toggle multiple game object on Mouse Over
« on: August 11, 2016, 11:15:24 PM »
Hi,
I have a character with multiple choice of attachment. Eg 5 choices of shoulder pad. What I want to achieve is when I hover a button, the correspondent attachment (gameobject) will be active and the current one will be deactivate. On mouse exit, everything will go back to previous state.

I can easily achieve this if theres only 1 gameobject, but since I have multiple, what is the best way?

Thanks.

kavery

  • Full Member
  • ***
  • Posts: 149
Re: Toggle multiple game object on Mouse Over
« Reply #1 on: August 12, 2016, 10:06:04 AM »
Have you tried using a GameObject variable to designate the currently equipped gear? If you have this set, you will always turn it back on when mouse exits a button, while turning off the preview gear GO.

detomato

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Toggle multiple game object on Mouse Over
« Reply #2 on: August 18, 2016, 11:30:13 AM »
thanks for the reply.
I dont quite get it tho. Do you by any chance has any sample on that?

Regards.