How do I disable two finger tap on mobile?

Get help using Construct 2

Post » Mon May 23, 2016 12:18 pm

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.
B
21
S
8
Posts: 23
Reputation: 1,513

Post » Mon May 23, 2016 12:39 pm

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.
B
8
S
2
Posts: 59
Reputation: 686


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 39 guests