# where two objects overlap

0 favourites
• 7 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
• Does anyone know of a reliable way to pinpoint the exact coordinates at which two objects overlap?

I know that if the objects are 90? this is pretty easy (you use the vertical one's X, and the horizontal one's Y) however, I have no clue how to do it if the objects are at an angle other than 0 or 90.

<img src="https://dl.dropboxusercontent.com/u/20613220/Captura.PNG" border="0" />

This show how it should look.

Also: they wont overlap at their origins.

• It?s possible, but it would be an really hard calculation, I try it but I can only calculate 1 single point in the red area ...

But you could tell us for what you need this, with some luck we could find another way.

• There is some posts on this in the How do I section

• Whiteclaws damn, didn't find any, I should have looked better. Going to

go look now =) (Edit: didn't find any that did this, would you be so kind as to paste a like here <img src="smileys/smiley1.gif" border="0" align="middle" />

Darklinki It's for a road system, where objects follow the lines, and know where the intersections are beforehand. The roads are created in real time by the player.

• Ninja'd by hornet :p

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• Thanks for the help guys :D. As it turns out, it does what I wanted to do... However, I don't think it's worth the trouble, since in my game it was just for aesthetics, and it requires math that is WAY too complex for my tiny brain =P. Specially since I would have had to modify it to work with a dynamic number of lines.

But, in case someone's feeling generous: My roads are segments of straight lines joining nodes of a pathfinding. You can have as many roads as you want in the game, with intersecting segments all over the place. So the lines intersecting would be of the same instance. Also, once the segments are set, they won't ever move from that place.

• 7 posts