Double tap and tap events on the sprite

0 favourites
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • Sorry for trowing something in your coffee.

    When pause = off ... A double tap will switch it on .. then off (after a short time).

    Clearly showing that the 'on tap' runs its actions, even when double tapped.

    The easy solution is in my example.

    Yes, you can perform a check so the logic doesnt trigger... but the event still does. Thats all im saying and I think thats where the OP is going wrong

  • Sorry for trowing something in your coffee.

    When pause = off ... A double tap will switch it on .. then off (after a short time).

    Clearly showing that the 'on tap' runs its actions, even when double tapped.

    The easy solution is in my example.

    WHY would you need to use double tap on the same object if double tap event is already running?

    If you need that use single tap and just toggle the variable.

    Tap and double tap are separate actions and used properly on the same sprite work as they are supposed to.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Dear lamar, you made the perfect capx to clearly show the opposite. So allow me to rest your case.

    Want a fresh coffee to make up ?

  • >

    > > Tap and double tap can be used on the same sprite.

    > >

    > >

    > >

    > > Use tap or double tap to set a trigger using a global variable.

    > >

    >

    > The OP is already using this. The problem is the tap gesture always runs <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    >

    If it always runs it is because he is not using the trigger variable properly.

    If he wants to post an image of his events or a CAPX I will gladly look at why his tap event is always running.

    Lamar, her is screen shot (from my google drive, for I don't know how to directly insert image in this forum)

    https://drive.google.com/file/d/0B6ZvCe ... FwbTA/view

  • Dear lamar, you made the perfect capx to clearly show the opposite. So allow me to rest your case.

    Want a fresh coffee to make up ?

    I would say you simply don't understand the function of double tap and tap to set a variable trigger but maybe can't admit it?

    If you have already set a variable with double tap why would you double tap again.

    If you need to toggle between event actions use single tap and just toggle the variable.

    It is that simple!

  • > Dear lamar, you made the perfect capx to clearly show the opposite. So allow me to rest your case.

    >

    > Want a fresh coffee to make up ?

    >

    I would say you simply don't understand the function of double tap and tap to set a variable trigger but maybe can't admit it?

    If you have already set a variable with double tap why would you double tap again.

    If you need to toggle between event actions use single tap and just toggle the variable.

    It is that simple!

    User will double tap (or tap) whenever he wants, he will not be going to delve into game inner structure

  • lamar using those triggers: make a sprite destroy itself on a single tap, but flash on a double tap

  • User will double tap (or tap) whenever he wants, he will not be going to delve into game inner structure

    Can you share a capx or explain what functionality the tap and double tap will be performing?

  • Boy you guys are hard headed lol!

    Here is the CAPX and events:

    https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

    Tap and double tap when used as expected on a single event work perfectly to set a trigger.

    If you are using multiple events use singe tap with a wait to set the triggger variable.

    I use these all the time in my games guys!

  • >

    > User will double tap (or tap) whenever he wants, he will not be going to delve into game inner structure

    >

    Can you share a capx or explain what functionality the tap and double tap will be performing?

    On "tap" I planned to select object for some operation in future (move, copy, so on), on "double tap" I would just to destroy the objest It would be very easy to user for understanding;

    here is screenshots (from my google drive), i tried to test both events, but only "tap" or course was running

  • Boy you guys are hard headed lol!

    Here is the CAPX and events:

    https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

    Tap and double tap when used as expected on a single event work perfectly to set a trigger.

    If you are using multiple events use singe tap with a wait to set the triggger variable.

    I use these all the time in my games guys!

    Sorryl Lamar, but you have used "double tap" for one sprite (sprite4) , and "tap" for another - spriteread.

    I was trying to use both events for the same sprite

  • > Boy you guys are hard headed lol!

    >

    > Here is the CAPX and events:

    >

    >

    >

    > https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

    >

    > Tap and double tap when used as expected on a single event work perfectly to set a trigger.

    >

    > If you are using multiple events use singe tap with a wait to set the triggger variable.

    >

    > I use these all the time in my games guys!

    >

    Sorryl Lamar, but you have used "double tap" for one sprite (sprite4) , and "tap" for another - spriteread.

    I was trying to use both events for the same sprite

    Oh, sorry - you have used both events for the sprite4, Bu I do not see when "Double tap on sprite4" will run. it will be never fired, because "tap" overwrite it.

    Here is my testing example:

  • > Boy you guys are hard headed lol!

    >

    > Here is the CAPX and events:

    >

    >

    >

    > https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

    >

    > Tap and double tap when used as expected on a single event work perfectly to set a trigger.

    >

    > If you are using multiple events use singe tap with a wait to set the triggger variable.

    >

    > I use these all the time in my games guys!

    >

    Sorryl Lamar, but you have used "double tap" for one sprite (sprite4) , and "tap" for another - spriteread.

    I was trying to use both events for the same sprite

    Did you try the CAPX?

    You can use single tap as a register for double tap as that second use of events with the red sprite shows.

    Tap the red box once and it changes size. Double tap and it changes size again.

    I gave you BOTH examples so you can use which ever works for your game.

    Works like a dream!

  • lamar using those triggers: make a sprite destroy itself on a single tap, but flash on a double tap

    Now think real hard....

    If you destroy the sprite you double tap you sure as hell can't tap it again to make it flash.

    Just like I asked why you would double tap a sprite already set to double tap?

    Nice try!

    Try this:

    https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

  • > lamar using those triggers: make a sprite destroy itself on a single tap, but flash on a double tap

    >

    Now think real hard....

    If you destroy the sprite you double tap you sure as hell can't tap it again to make it flash.

    Just like I asked why you would double tap a sprite already set to double tap?

    Nice try but fail!

    Try this:

    https://www.dropbox.com/s/c1hxdpaell02t7s/Tap%20Example2.capx?dl=0

    Lamar, row number 2 " double tap on sprite4" will NEVER run. If you delete that row nothing will changes

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