How do I disable two finger tap on mobile?

0 favourites
  • 2 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • I want to make shooter game. The gameplay is only tap the target to shoot. But on mobile there are two finger tap. I want player can use one finger tap in game area.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    You could add a short cooldown timer so that only the first tap is registered.

    Add the Timer behaviour to your object.

    Add a number Instance variable to your object called "Firing" set to 0

    "On Tap"

    AND

    "Instance.Firing = 0"

    ____Start Timer for 0.2 seconds tag "Cooldown"

    ____Set instance.Firing to 1

    ____Call Function "Fire!"

    On Timer "Cooldown"

    ____Set instance.Firing to 0

    This will stop your player tapping twice in quick succession (such as a two-fingered tap) as the first tap immediately sets Instance.Firing to 1. However, the biggest limitation here is how fast you allow your player to shoot. You can adjust the timer to accommodate this.

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