TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Can i detect multi-touch inside a polygon region?
Pages:
1
Can i detect multi-touch inside a polygon region?
Northfield82
Posts: 649
April 11, 2016, 05:13:04 am
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
August 29, 2016, 06:14:22 am
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
August 29, 2016, 07:53:04 am
here is ther theory for it >
http://stackoverflow.com/questions/2049582/how-to-determine-if-a-point-is-in-a-2d-triangleI
havenf had the time to work this out yet tho
Maruda
Posts: 9
August 29, 2016, 08:48:25 am
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
August 29, 2016, 01:27:17 pm
Hi Maruda, yes that's the option I went for in the end. Works just the same
Maruda
Posts: 9
September 01, 2016, 11:55:55 am
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
Pages:
1