playMaker

Author Topic: Guess mouse left or right button ?  (Read 2415 times)

miketolsa

  • Playmaker Newbie
  • *
  • Posts: 22
  • Just love playmaker !!!
    • 4Buffs Productions
Guess mouse left or right button ?
« on: July 13, 2015, 06:14:33 AM »
I want to guess as which mouse button is pressed is it left or right ?

As i have tried using get mouse button down action to detect which button is down using unity inputs ..... but some how the unity input for mouse ( mouse 1,mouse 0) isn't working as described ?

So either I am missing something of doing something wrong ..... so could you please guide me as what to do as which mouse button is pressed is it left or right ?

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Guess mouse left or right button ?
« Reply #1 on: July 13, 2015, 09:36:22 AM »
You used the Get Mouse Button Down action and it didn't register clicks at all?
Or is your problem just figuring out if it was the right or left click?

In the second case I'd just have one action for Left click and one for Right click that send different events.

miketolsa

  • Playmaker Newbie
  • *
  • Posts: 22
  • Just love playmaker !!!
    • 4Buffs Productions
Re: Guess mouse left or right button ?
« Reply #2 on: July 13, 2015, 12:48:49 PM »
I figured it out later using the same action combination that you mentioned . Now the problem is how to destroy the clone of the prefab ? as it always give that missing object or delete error while destroying the object .

miketolsa

  • Playmaker Newbie
  • *
  • Posts: 22
  • Just love playmaker !!!
    • 4Buffs Productions
Re: Guess mouse left or right button ?
« Reply #3 on: July 14, 2015, 12:15:53 AM »
can anyone help me with the destroy object action ?

as i want to destroy previously created object using destroy object so if anyone can tell me how to do that ?