So I suck at math...

Get help using Construct 2

Post » Tue Mar 11, 2014 2:54 am

So I suck at math...
Im making a game and i need to spawn an object right in the middle of two other objects. Say object 1 is at (10,100) and object 2 is at (20,50), what is the equation to get the point directly in the middle of the two?

Thanks for any help!
B
36
S
5
Posts: 156
Reputation: 3,310

Post » Tue Mar 11, 2014 3:19 am

Add the similar coordinates and divide by two.

10+20=30/2=15
100+50=150/2=75
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Tue Mar 11, 2014 3:24 am

blackhornet wrote:Add the similar coordinates and divide by two.

10+20=30/2=15
100+50=150/2=75


Haha thats simple. Have no idea why i didnt know that. Thanks!
B
36
S
5
Posts: 156
Reputation: 3,310


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests