playMaker

Author Topic: Simple Double Click[SOLVED]  (Read 1381 times)

acornbringer

  • Playmaker Newbie
  • *
  • Posts: 25
    • View Profile
    • Acornbringer.com
Simple Double Click[SOLVED]
« on: June 24, 2016, 12:32:58 PM »
Hey!

I came up with this really simple double click setup for a game I'm working on after failing to understand the instructions given in a help post :p

Topic: [SOLVED] Mouse Double Click - how to?
http://hutonggames.com/playmakerforum/index.php?topic=1721.0

It's been working out great for me so maybe it will suit your purposes as well if jeanfabre's resolution doesn't.

In my case, I needed to let the player click to and drag the screen to scroll through content as well as click the same screen to roll a die. In order to keep the two functions from clashing, I needed a double click so there was a distinction.

When the player clicks the scene, they trigger a box collider FSM I put back there. If they don't click again before the "Check for Double Click" state is done waiting, it returns to the "Waiting" state. A "Wait" action set to 0.2 seems to work for my double click but making it a larger number will allow for slower double clickers. If the player clicks within the time frame, it follows through with the dice roll.

Hope this helps someone out!
« Last Edit: September 27, 2016, 12:12:53 AM by jeanfabre »

Helen61

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: Simple Double Click
« Reply #1 on: August 03, 2016, 04:51:46 PM »
Oh, I was wondering about it for a long time. Thanks for solution mate!
I hate cleaning, so I love najlepsze maszyny czyszczące!

ElizabethAnderson55

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: Simple Double Click
« Reply #2 on: August 09, 2016, 02:24:51 AM »
I really like this as well. Works for me perfectly ;)
Tomografia might save your life!

Emma1988

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: Simple Double Click
« Reply #3 on: August 11, 2016, 06:37:07 AM »
You made my day! Thanks!!
You should know that I am a nurse at Zajęcia dla dzieci.