Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
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
How can I detect collisions between 2 line objects?
Its not supported.
How ever you can use a sprite as a dummy, and set the sprites to the start and end positions of the lines.
I was afraid that this is only option.
--- edit ---
Is there any way to retrieve line objcet angle in event sheet editor?
There's no specific command for it, but it's doable with a bit of math.
I'd figure it out for you but all I remember from college is how to drink and smoke.
Develop games in your browser. Powerful, performant & highly capable.
You can use the angle() expression to get the angle between the start point and end point, which will give you the angle of the line:
Angle(Line.StartX, Line.StartY, Line.EndX, Line.EndY)
There should probably be an included expression, though.
Well there ya go. That's actually a lot easier than I thought it would be.
Guess I should pay more attention to the system expressions.