Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: blazingriver on October 31, 2015, 02:52:05 PM

Title: FSM to draw line between two points
Post by: blazingriver 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!
Title: Re: FSM to draw line between two points
Post by: djaydino on November 01, 2015, 05:54:52 AM
Hi,
you will need to use finger id's on your touch actions.