playMaker

Author Topic: detect mouse pick NOT on a box collider  (Read 2040 times)

haikugames

  • Playmaker Newbie
  • *
  • Posts: 25
detect mouse pick NOT on a box collider
« on: December 11, 2013, 05:57:34 PM »
I've been loving Playmaker so far.  I have a 2d point and click adventure game.  I am trying to detect a mouse pick in an area outside a sprite (where I have a 2d box collider).  The use case is this:  I want to open up a puzzle, and if the player clicks on the puzzle, they interact with it.  If they click anywhere outside, the puzzle closes.  I want that outside click to trigger an event in my FSM. 

Any suggestions on how to implement this?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: detect mouse pick NOT on a box collider
« Reply #1 on: December 12, 2013, 06:08:36 AM »
Hi,

 Create a background trigger, since it's in the back, any other collider will catch the event, and so you will be able to know when the user clicked on "nothing".

bye,

 Jean