How do I avoid tapping more than once a second

Get help using Construct 2

Post » Sun Jul 13, 2014 1:18 am

Greetings

I currently have the following problem: if I export my project to Windows Store and I put it on my phone, if I frenetically tap an object that has related events associated with the tap the game will freezes for more than 2 seconds, after which it will resume.

How can I add some sort of a counter to provide a workaround for this bug?

Thank you :)
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 166
Reputation: 3,035

Post » Sun Jul 13, 2014 1:26 am

You could have a cool down variable that decreases by 1 every second (and stops at 0)

Then simply have your touch event have the condition of cool down being equal to 0, and the action itself setting the cool down variable to whatever value produces the best result (let's say 3)
B
61
S
22
G
10
Posts: 647
Reputation: 10,453

Post » Sun Jul 13, 2014 8:50 am

Thank you, good idea :) however it still freezes up the WP8 app when I tap with 4-6 fingers and the tap counter reaches between 60 and 300 :(

I will report it as a bug.

Thanks again!
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 166
Reputation: 3,035


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests