Can someone please explain how touches.count works

I have a game with simple left right and jump controls.
I need to enable multitouch on my phone but dont get how the touches count works as i have tried many ways.
Tried to download t shirt booths demo but it fails to d/load. Did dowload the codemonkeys demo but dont get how they are using touches count ...anyone please help..
thanks so much for reading this far
clive x

Comments

  • WingmanappsWingmanapps Member Posts: 458
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    edited May 2013
    Touches.Count is the total number of touches active. On iPhone there are 6 max touches. On iPad it is max 11. On android, it varies, but it is usually 2, I think.

    The total count of touches does not specify which specific touch X/Y coordinates are being used. The reason for this is if you have 1,2 then 3 touches, then release the 2nd touch, the count will be 2 touches, but only the 1st and 3rd set of coordinates will be actively updating coordinates.

    My demo that you refer to, probably tries to help you figure out which specific touch is being used via 5 separate actors that are constrained to a specific set of touch coordinates. There is a little bug that the reset point is within reach of the circle actor that looks for a collision detection with a specific actor.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited May 2013
    I did a complete tutorial series on multitouch. To see parts 2 and 3 click the link in my signature.



  • PBEmpirePBEmpire Member Posts: 676
    @codemonkey
    If i understood what these touches meant correctly, then android is surely more then 2.
    There is a gesture based app which allows up to 5 touchpoints.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    @PBEmpire. It varies. My android only registers 2.
  • FranzKellerFranzKeller Member Posts: 517
    and still, it's not possible to do multitouch testing without uploading to an iOS device?
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited May 2013
    Nope because it's based on the capacitor touch screen right? Think about it. On a computer you only have one mouse position on a touch screen device you can have tons of mouse positions this is what a touch is your fingers or fingers become the mouse but since one only has ten fingers, you get the point.
Sign In or Register to comment.