playMaker

Author Topic: How to disable multitouch?  (Read 1323 times)

joel.carlson

  • Junior Playmaker
  • **
  • Posts: 66
    • Salvation's Story
How to disable multitouch?
« on: March 01, 2022, 06:29:53 PM »
I'm creating a spelling game and I'm noticing my 5 year old likes to play it with around 4 fingers resting on the screen. :P Any good way to disable multitouch?
Check out Noah's Elephant in the Room, Bible ABCs for Kids, Bible Coloring for Kids, and Noah's Bunny Problem at
Salvations Story

joel.carlson

  • Junior Playmaker
  • **
  • Posts: 66
    • Salvation's Story
Re: How to disable multitouch?
« Reply #1 on: March 02, 2022, 10:59:48 AM »
Well, I think I solved it. So if anyone is curious this is how I went about it.

I have one object that tracks the finger at all times. I had been using 'Get Mouse X' and 'Get Mouse Y' to track the position. That's an issue! When I placed two fingers on the screen, the actions would place the 'mouse' in between the two points so neither of your fingers are accurately placing the object. I didn't realize it at the time, but 'Get Touch Info' gets the coordinates (I was looking for 'Get Touch Position' or 'Get Touch X' similar to how the mouse actions are labeled. So I used that action instead. I also tracked which finger is doing the touching using the 'FingerID' variable and only tracked that one while ignoring all others.

Hope this helps!

Check out Noah's Elephant in the Room, Bible ABCs for Kids, Bible Coloring for Kids, and Noah's Bunny Problem at
Salvations Story