User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: after the first click, the system waits for a second before accepting the next click

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2010
    Location
    Slovenia
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    after the first click, the system waits for a second before accepting the next click

    Hi!

    I'm making a puzzle game, which works by rotating square pieces by 90 degree.

    I prepared a simple MMF project, which describes a problem.

    click&rotate.mfa

    At first everything looks OK. Square pieces seems to rotate as they should. But after a while player becomes more experienced and would like to speed up the game play by rotating pieces quicker (so he starts to clicking faster).

    And then became quite annoying that after the first click, you will need to wait almost a second before the computer will accept the next click.

    I know this doesn't look like a big problem, but after a several thousands clicks it became very noticeable and the game play became less fluent (and game looks poorly programmed).

    I'm not sure if I explained well, so please download MFA file to see what I mean.

    You will notice that the squares rotates much faster if you are moving mouse cursor slightly while quickly clicking (or when you quickly clicking at a different squares). So the problem doesn't occur when you moving the mouse! The pause accrues "only" between two clicks at the same spot.

    I believe this has something to do with a double click (system needs to wait a second for a second click on the same spot). I was hoping that problem would be less noticeable on iOS since it's hard to tap at the exactly same spot twice in a row. But unfortunately the problem exists there also.

    I'm sure some of more experienced user has already noticed (and solved) this problem. I would really appreciate any solution or idea or brainstorming how to solve this.

    Thanks in advance :-)

    Dušan

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2010
    Location
    Slovenia
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I changed a MFA project a little. Now the problem is more obvious.

    Try this:
    1. click as fast as you can at the same spot (without moving the mouse)
    2. click as fast as you can while moving mouse (that's why I make objects a little bigger)

    You will notice that the click response is much faster in the second case.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2010
    Location
    Slovenia
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a partial solution. Very simple and obvious. Unfortunately it works good in this case, but I cannot implement it in my- slightly more complicated game :-(
    Attached files Attached files

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Ryan's Avatar
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    1,279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you need to test for double click too... the second click in rapid succession registers as a double click and is ignored by single click.

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2010
    Location
    Slovenia
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ryan, from my experience with "rapid clicking" double click acts very similar as a single click.
    - With single click every second click is ignored (to be sure that it's not a double click)
    - while with double click the first click is "ignored".

    so in both ways one click is "wasted" :-)

    I tried, but just cannot find a way to use them together...

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    This seems to be the best approach to detect both a single click and rapid clicks:

    * User clicks with left button
    OR
    * Repeat while left mouse-key is pressed
    + Only one action when event loops

  7. #7
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2010
    Location
    Slovenia
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Popcorn, thank you very much! Works like a charm! This is exactly what I need.

    I owe you one! :-)

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Ryan's Avatar
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    1,279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Popcorn View Post
    This seems to be the best approach to detect both a single click and rapid clicks:

    * User clicks with left button
    OR
    * Repeat while left mouse-key is pressed
    + Only one action when event loops
    Wouldn't that result in detecting 'OnMouseDown'? Click only occurs when the mouse button comes back up.

    I've always used

    * User clicks with left button
    OR
    * User double clicks with left button

    I've had no problems doing it that way.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Ryan View Post
    Wouldn't that result in detecting 'OnMouseDown'? Click only occurs when the mouse button comes back up.
    No, it does indeed do the job.

    Quote Originally Posted by Ryan View Post
    I've always used

    * User clicks with left button
    OR
    * User double clicks with left button

    I've had no problems doing it that way.
    Thanks for the tip, sounds like that would do the job as well

  10. #10
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2010
    Location
    Slovenia
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you both for the solutions.
    I'm attaching both versions (maybe could help someone in the future). They work almost identically in this simple project.
    Attached files Attached files

Page 1 of 2 1 2 LastLast

Similar Threads

  1. [REQ] Click on iAd
    By Olivier in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 29th March 2013, 09:23 AM
  2. Active System Boxes - control of click intercepts?
    By Mark_Pay in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd June 2008, 09:04 PM
  3. Click bug?
    By Saturn in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd February 2008, 05:35 AM
  4. Active system box : double click
    By Sphax in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 23rd November 2006, 08:42 AM
  5. Moo click help
    By Master_Doom in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 19th August 2006, 08:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •