Disable Multi Touch

Get help using Construct 2

Post » Fri Nov 29, 2013 11:21 am

Hi guys,

I need to disable multi touch, player should be able to drag one object at a time. I was searching on forum but I couldn't figure out any thing about this issue. Can you help me, please?

Thanks.
Image
B
63
S
28
G
39
Posts: 460
Reputation: 24,187

Post » Fri Nov 29, 2013 11:37 am

Instead of just
"on touched object"

do

"on touched object
Has touch 0"

(or any other Touch trigger for that matter)
B
14
S
5
G
1
Posts: 60
Reputation: 1,052

Post » Fri Jan 09, 2015 1:16 am

Hey guys,

Ran into a problem - I tried implementing "touch 0" for drag and drop objects. I have five draggable objects, all the same sprite in my layout.

This is what I did:

*For first nth touched 1st object I set "has touch 0" and enabled drag and drop

*For second nth touched object I set "has touch 1" action to "drop"

I sent this to my ipad for testing. It allows me to drag 2 objects at the same time, but drops the third object. Any ideas why it would treat object 1 and 2 as a "touch 0" but treat my third object as the "touch 1"?
B
6
S
1
G
1
Posts: 25
Reputation: 779

Post » Fri Jan 09, 2015 12:35 pm

Note that the index of the touch is related to simultaneous touches. That is, if I touch with 3 fingers they'd be 0, 1 and 2, according to the order of touch. If I touch with one finger again and again all those touches would be index 0.

Also, "Has Nth Touch" doesn't work as you think it does. This condition is true if that specific touch index is active.

For example, having these two events:

On touched <object>
Has touch 3

means that this is only true if the object is touched AND there are 4 touches active on the screen (0,1,2,3).

What you wish, I believe, is:

On touch 0 start
Is touching <object>

Which means that it's true only for the first touch (no multitouches) and if this touch is touching that specific object.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
16
S
4
G
1
Posts: 435
Reputation: 2,353


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi and 24 guests