touch causes many button presses

Get help using Construct 2

Post » Mon Aug 20, 2012 10:57 pm

I have a project which has some sprintes as buttons (e.g. bt_buy)

I was using the mouse, i.e.

Mouse-> on left button clicked on bt_buy -> ...

This worked on PC not not on all mobiles.

so I changed mouse clicked to "Touch -> Is touching bt_buy" and set "use mouse input" to Yes.

But now when I click on my buy button in a browser with the mouse, it registers about 20 button press events!

How do I support either clicking on a button in a browser with the mouse, or tapping the finger with a mobile, without incuring many taps, only one?

What should I be using:

1) is in touch
2) on touch end
3) on touched object
4) is touching object
5) on toutch start?





nutmix2012-08-20 23:00:33
B
15
S
5
G
2
Posts: 357
Reputation: 3,691

Post » Mon Aug 20, 2012 11:21 pm

Tried them all, and "on touched Object" coupled with "Use mouse input" property = yes seems to work.   The manual page descriptions of these events didnt mean anything to me, so could not go by that.nutmix2012-08-20 23:22:31
B
15
S
5
G
2
Posts: 357
Reputation: 3,691

Post » Tue Aug 21, 2012 4:29 am

Have you closely read how events work ?.

By seeing that "On object touched" is a triggered condition, and that it kind of sounds like "On object clicked" for the Mouse, it probably was the way to go.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests