Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
So i'm creating an interactive shadow. Currently its a slightly oblong sprite with an off-center origin that rotates itself towards the closest light source. My question is how I could get it to rotate to the correct medium point/middle point if two lights are close and would make equal pulls on the shadow sprites angle. so I dont have odd outcomes as such
bump
Develop games in your browser. Powerful, performant & highly capable.
I would suggest the line of sight behavior for when you have multiple picked lights, and anglediff(angle1,angle2) of those two angles.
Heres another method that averages the xys of picked objects.
https://www.dropbox.com/s/frr1bta9z8u23 ... .capx?dl=0
It's not great for choosing between larger angles.
Maybe get R0J0hound for averaging poly's of angles.