playMaker

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

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