playMaker

Author Topic: FSM to draw line between two points  (Read 1334 times)

blazingriver

  • Playmaker Newbie
  • *
  • Posts: 26
FSM to draw line between two points
« on: October 31, 2015, 02:52:05 PM »
Hi,

I am trying to make an FSM which draws a line between two touch points. I.e. if a user briefly taps their left thumb and right thumb on a screen simultaneously, I want the two points of contacts to be recorded, a line drawn between them <-(which is easy enough), and then reset in preparation for the process to be repeated again.

I am having trouble recording the location of the two distinct points of touch contact when the screen is tapped simultaneously with both thumbs. I am also struggling with how to limit the number of simultaneous taps registered to 2 (so if the screen is tapped by three fingers at the same time, only 2 are registered). How would one go about implementing this in a FSM?

Thanks in advance!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: FSM to draw line between two points
« Reply #1 on: November 01, 2015, 05:54:52 AM »
Hi,
you will need to use finger id's on your touch actions.