Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: haikugames on December 11, 2013, 05:57:34 PM

Title: detect mouse pick NOT on a box collider
Post by: haikugames 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?
Title: Re: detect mouse pick NOT on a box collider
Post by: jeanfabre 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