KICK4H4's Recent Forum Activity

  • Would be nice to have official info for this kind of things.

  • rexrainbow would this be useful for recreating Jill of the Jungle's knife? https://youtu.be/t7E-P4VJbdg?t=45

    Sometimes, her knife can't find it's way back to her and falls to the ground: https://youtu.be/t7E-P4VJbdg?t=23 but this wouldn't have that problem really, would it?

    It might be interesting to try but you would be better off using the faster/simpler position check that game uses. I think the weapon getting stuck is a feature, but you can get around it it by making the weapon warp through solid obstacles or not even colliding with them at all during the return phase.

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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • No and there is my events using the same sprite with tap and double tap. It sets the variable to 1 on tap and 0 on double tap.

    Setting the variable is an action, not an event. The tap event runs every touch on that object. Double tap or single tap.

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

  • 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

  • AndyRevenko since you want the object to react to a tap AND a double tap... the single tap event must run, unless the object waits to see if a double tap registers within a time limit then decide what code to run.

    May use a swipe for the extra action, or a long press if the extra action is not immediate?

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

  • Right, that's not the issue though, its bringing the variables from the other instance. if I go "Create object, ObjectA" then "Set instance variable ObjectA, Variable1= ObjectA.Variable1" it thinks I am referring to the object I just created, instead of the preexisting one when setting the new variable

    Just edited my answer

KICK4H4's avatar

KICK4H4

Early Adopter

Member since 25 May, 2014

None one is following KICK4H4 yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies