Can i detect multi-touch inside a polygon region?

Northfield82

  • Posts: 649
I've drawn 4 polygon regions on my screen to split my stage up into 4 areas (4 inverted triangles).

I want to detect which region a touch occurs, is this possible?

My only use of multi-touch has been detecting if the touch has been inside of x y coordinates in a square/rectangle.

Thanks

Maruda

  • Posts: 9

Can somebody answer this pliz? I also want to know how to do that!

Nortfield82 did you find out how this can be accomplished?

thanks

stefan

  • *
  • Posts: 2263

Maruda

  • Posts: 9
Thank you TheIndieStation but after reading up about regions and people not advising on using them I think I'll just create transparent actors attached to my actor and when touched it will determine the movement. You think it will work? Thanks

Northfield82

  • Posts: 649
Hi Maruda,  yes that's the option I went for in the end.  Works just the same

Maruda

  • Posts: 9
Northfield82 idea is good but execution . . .   any pointers?

How can I control one actor when the other is being pressed on ?

And how do you attach one actor to the other? I'm using "follow target" from forge but cant tell if itsworking.

thanks in advance for help