Disable Multi Touch

0 favourites
  • 4 posts
From the Asset Store
Comprehensive localization solution for Construct 3 projects, no addons required!
  • 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.

  • Instead of just

    "on touched object"

    do

    "on touched object

    Has touch 0"

    (or any other Touch trigger for that matter)

  • 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"?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)