Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hi all,
I just tring polygon addon, and managed to create a polygon shape by click-drag mouse.
But how to check if an object is inside a polygon shape.
Thanks.
Hi ramose73 Would overlapping suffice or does it need to be fully contained?
Develop games in your browser. Powerful, performant & highly capable.
Hi hundredfold, it needs to be fully contained.
What shape the object would it be? Is it any shape of polygon inside another or square?
Katala,
the polygon should be in freeform shape.
Sorry for not detailing my goal. I attach the concept of game I need to make.
User draw line around stars, then stars disappear. The line should be closed.
Here every star has 10 imagepoints that need to overlap the drawn polygon.
It might be enough to just check if the center of the star is in the polygon.
I made a capx a while ago that did that.
[quote:3dzdp7lx]It might be enough to just check if the center of the star is in the polygon.
I also thought it should be enough.
Thank you Katala and R0J0hound !
That all works for me