playMaker

Author Topic: Mouse picking from multiple objects [SOLVED]  (Read 1397 times)

MediaGiant

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Mouse picking from multiple objects [SOLVED]
« on: March 17, 2013, 09:32:12 AM »
I'm using the Mouse Pick action to select between objects (dynamically created) in the world. Mouse Pick stores the game object selected in a global variable called currentObject. I then added a Bool Test to jump to a new state where I would like to perform a Set Material action on the selected object. The problem is when I click on Specify Game Object the global variable is not available. Perhaps this is the wrong approach so I'd welcome any ideas. 
« Last Edit: March 18, 2013, 07:08:46 AM by MediaGiant »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2484
  • Yup.
    • View Profile
    • Cleverous
Re: Mouse picking from multiple objects
« Reply #1 on: March 18, 2013, 05:08:02 AM »
Try this (attached scene) Import into existing project with PlayMaker and open the scene.

MediaGiant

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: Mouse picking from multiple objects
« Reply #2 on: March 18, 2013, 07:07:42 AM »
Hi Lane, from looking at your example I noticed that you had selected that odd little button just under Specify Game Object that says Use Variable, DOH! I was expecting it to be in the drop down list automatically, but I'm glad that is solved. You're a champ. Thanks.