PlayMaker Help & Tips > PlayMaker Tips & Tricks
Simple Double Click[SOLVED]
acornbringer:
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!
Helen61:
Oh, I was wondering about it for a long time. Thanks for solution mate!
ElizabethAnderson55:
I really like this as well. Works for me perfectly ;)
Emma1988:
You made my day! Thanks!!
Gerwald:
Yes you really made my day to! ;D
Navigation
[0] Message Index
[#] Next page
Go to full version