playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Playmaker 1.9.1 Released!
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
detect mouse pick NOT on a box collider
« previous
next »
Print
Pages: [
1
]
Go Down
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?
Logged
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
detect mouse pick NOT on a box collider