How do I make buttom mashing work?

Get help using Construct 2

Post » Tue Feb 02, 2016 12:32 pm

Hi guys,

i am working on some kind of rhythm game, where you have to push buttons in a defined pattern.

I want it to work on Desktop Browsers and on Mobile.

I made some tests for button mashing, just to test how often the button press is registered.
Adding the value "1" to a visible score.

Keyboard input works great and very fast.

But on my iPhone, the "on tap gesture" behaves strange.

I can register a lot inputs when I do not press on the same spot on the screen, like with both thumbs by turns on the left and right side of the screen.

When I tap very often on the same spot, it sometimes misses an input.

Is there a solution to make this work?

Thanks! ;)
B
4
Posts: 3
Reputation: 206

Post » Tue Feb 02, 2016 3:40 pm

not quite sure what your want to create. But search for simon says I believe there is a .capx and demo explaining how to create the on event choose random colors.

also look at adding once while true statements to the code.
You may also have to play with on tap vs. on touch as they do different things.
B
29
S
13
G
10
Posts: 355
Reputation: 8,312

Post » Tue Feb 02, 2016 7:12 pm

I think "On any touch start" should work faster. Can you check it?
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Tue Feb 02, 2016 8:11 pm

If the beahvior works differently, it is supposed that you couldn't reproduce the same outcome from it by the same method. Anyway, I would try the same as you did but using a variable and a timer to reset the variable. So you could say On tap(if var is true)>start counting>set var false>if time bigger than "insert your time here">set var true. I am not sure, but I think you could control better the time between one tap and another by using time.
B
7
S
2
G
1
Posts: 38
Reputation: 917

Post » Thu Feb 11, 2016 4:05 pm

"on any touch start" solved all my problems! Let the button mashing begin!

Thanks mindfaQ and all others for their responses!
B
4
Posts: 3
Reputation: 206


Return to How do I....?

Who is online

Users browsing this forum: bikachu, LaurenceBedford, lucstanislash, oosyrag, rayray and 8 guests