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:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Mouse Pick Entire Screen
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Mouse Pick Entire Screen (Read 1552 times)
mphilips
Playmaker Newbie
Posts: 8
Mouse Pick Entire Screen
«
on:
March 27, 2014, 12:55:30 AM »
I want my character to jump when I click anywhere on screen (except GUI).
I am using 2D Unity & Playmaker actions.
I have jump controls on a character FSM. I'm assuming I need to use mouse pick event 2D.
I set layer mask to invert and stick GUI layer in.
Problem is that the mouse pick doesn't respond unless I click directly on the character.
Any idea what I am missing here? Probably a newbie mistake somewhere.
Thanks,
Mike
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Mouse Pick Entire Screen
«
Reply #1 on:
March 27, 2014, 06:04:21 AM »
Hi,
simply listen to the physical "Mouse down" using the action "GetMouseButtonDown", then manually perform your raycasting and pick up logic.
Bye,
Jean
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Mouse Pick Entire Screen