Disabling multi-touch

3absh3absh Member, PRO Posts: 594

I'm trying to disable multi-touch as it can cause errors in my game. (My game is a menu RPG)

Is there anyway to do this?

Comments

  • HopscotchHopscotch Member, PRO Posts: 2,782
    edited August 2017

    @abuabed84

    by multi-touch you mean that you do not want users to touch and control two actors at the same time?

    Then you will need to restructure your "touch is pressed" rules a bit, to test for :

    Device.Touches.Active.Touch1 = true

    Also, use

    Device.Touches.Touch1.X and .Y

    for position of the touch.

    This should give you the basics, but forces the user to lift their finger before a second touch can be registered.

    Depending on your setup and desired effect, it may get quite a bit more involved. For example, if you want a second touch to become active (which was already being pressed) as soon as the first touch is released, then you will need more complex checks on all touch events (.Touch1 to probably .Touch3 or 4) and test for Device.Touches.Count = 1.

  • 3absh3absh Member, PRO Posts: 594

    Well i want multi touch disabled meaning only one place on the screen can be touched.

    I want to disable touching with 2 fingers or more

    Because I have a lot of menus and when I press 2 menus at the same time they both open which results in a bug

    I want the touch to ONLY be limited to 1 place

  • 3absh3absh Member, PRO Posts: 594

    I will try your method
    Thank u

  • Two.ETwo.E Member Posts: 597

    You can use the Device>Touch.Count attribute.

    In your menus, you can say when:
    When Touch is Pressed (And)
    When Touch.Count is equal to 1

    Hope that helps,

    Best,
    Two.E

Sign In or Register to comment.