Doubble clicking?

This forum is currently in read-only mode.
From the Asset Store
Click! Click! 136 click sounds for your video games or media projects
  • In this cap you can create two rectangles. If you click the mouse the blue one will appear. If you click the mouse and the blue one is visible, the red one should appear. Her's the wierd thing:

    If you click, and then click again within the doubble-click time (which depends on how your computer is configured) it doesn't reveal the red one. It looks like it's counting the second click as just a part of a doubble-click. If you try to change the doubble-click speed of your computer you will see that it affects the behavior of the application.

    Is this intentional?

  • Its probably becouse when you click again right after sprite is not visible yet.

    ps. if you switch events, both will go visible .

  • Read again. You're missing the point completely.

    [quote:jonk0p9r]Its probably becouse when you click again right after sprite is not visible yet.

    The sprite is visible 1/60 of a second after i click again. I don't click that fast. And as i said, it changes when i change the doubble click speed. At slowest i can wait like 2/3 of a second before the second click, and it still doesn't reveal the red box.

    [quote:jonk0p9r]ps. if you switch events, both will go visible .

    Of course they will.. I could also put the actions in the same event. But that's not what i'm talking about.

  • I can click immediately again to get it to show.

  • I get the same problem that Attan described.

    But if I change the condition from 'single clicked' to 'either single or double clicked', it works fine.

    Even though the behaviour of single click seems weird in this case, it's probably the intended behaviour. (I can see cases where you'd want to differentiate between a single and a double click on an object... and in that case, you wouldn't want to have both clicks of the double-click also registering as a single click. So it makes sense to have conditions where you look for the input of one click alone, two together, or any click.)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • [quote:1eogqhai]I can click immediately again to get it to show.

    That's wierd... another guy had to click three times.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)