playMaker

Author Topic: Game object selection problem  (Read 2139 times)

sicga123

  • Playmaker Newbie
  • *
  • Posts: 10
Game object selection problem
« on: April 26, 2012, 01:06:47 PM »
I have a scene where the player clicks on a object, one of numerous in the scene, and it is deactivated. However, more thn one object is getting deactivated together. I was wondering how I could make sure that the object moused over and selected was the only one deactivated?

The FSM on the objects have a state with a Mouse Pick Event and a mouse over transition which goes to a state with a Send Event action (set to none), then a Mouse Pick action (mouse down event), and a Mouse Button down action with a pressed event. This then goes to  a new state which deactivates the game object. As stated several objects are deactivated at once, rather than just the one chosen.

I'm still not fully conversant with Playmaker so not certain how I can isolate a game object that is moused over so that only it will be deactivated.

Any assistance is greatly appreciated.