playMaker

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

acornbringer

  • Junior Playmaker
  • **
  • Posts: 75
    • Acornbringer.com
Simple Double Click[SOLVED]
« on: June 24, 2016, 03: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, 03:12:53 AM by jeanfabre »

Helen61

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Simple Double Click
« Reply #1 on: August 03, 2016, 07: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
Re: Simple Double Click
« Reply #2 on: August 09, 2016, 05:24:51 AM »
I really like this as well. Works for me perfectly ;)
Tomografia might save your life!

Emma1988

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Simple Double Click
« Reply #3 on: August 11, 2016, 09:37:07 AM »
You made my day! Thanks!!
You should know that I am a nurse at malyinzynier.pl.

Gerwald

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Simple Double Click[SOLVED]
« Reply #4 on: August 23, 2019, 10:30:28 AM »
Yes you really made my day to!  ;D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Simple Double Click[SOLVED]
« Reply #5 on: February 17, 2020, 01:59:32 AM »
Hi,

 yes, my solution was more complicated than this, that was the early days for me :) indeed I am doing it like you do now !

Bye,

 Jean