AndyRevenko's Recent Forum Activity

  • > 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

  • >

    > 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

  • > 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

  • >

    > > 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 All, could you help me in the following situation:

    I have two sprites:

    1) Background

    2) My character

    For sure, my character is above the background

    I've implemented two event handlers: "tap on background" and "tap on character"

    BUT, when I taps on character, the handler "tap on background" also fires

    Is this a way to prevent start all "tap on...." exept the sprite i just tapped?

    Thank you in advance,

    Andy

  • >

    > 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.

    >

    Unless ive not had enough coffee this morning, it doesnt matter. If you put a tap and a double tap trigger on an object, the tap will always run.

    You are absolutely right I've verified it in visual studio - the same situation, "double tap" is always ignored if "tap" is also presented.

    I see now, this is phisically is not possible to have the both events. The "wait" action in "tap" in order to distinguish "just tap" from "double tap" will make user crazy (me too, by the way

  • You do not have permission to view this post

  • AndyRevenko I always use custom touch code rather than the helpers. Try using just tap events and check the time between taps to use as a double tap.

    THnaks, gameglaux!

    But it will not solve the problem - the "tap" will always runs anyway, so I can have either "tap" or "double tap" events, but not the both

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • Hi guys, could you tell me, please:

    I want a sprite to react on "tap" and "double tap" events, but "tap" always overwrites "double tap", so "double tap" event handler never run, regardless of the order or the arranging "tap" and "double tap" events.

    How can I react on "tap" and "double tap" on the same object?

    Sincerely yours,

    ANdy

  • The same problem

AndyRevenko's avatar

AndyRevenko

Member since 31 May, 2016

None one is following AndyRevenko yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies