How do I calculate the centre?

Get help using Construct 2

Post » Thu Jan 26, 2017 9:30 am

How do I get the X between a & b?
a-----------------X----------------b
a----X-----b
Tried: a.X + b.X / 2
yes.

__

|:D|

Gamjolt account:http://gamejolt.com/profile/masgame/409321/
B
33
S
12
G
3
Posts: 38
Reputation: 4,542

Post » Thu Jan 26, 2017 10:03 am

That's correct if X is always exactly in the middle of a and b.
B
46
S
16
G
74
Posts: 2,088
Reputation: 44,185

Post » Thu Jan 26, 2017 10:05 am

You forgot the parenthesis.
(A.x+b.x)/2
B
92
S
32
G
106
Posts: 5,272
Reputation: 69,455

Post » Thu Jan 26, 2017 9:00 pm

Ohh, forgot about the parenthesis. :D
yes.

__

|:D|

Gamjolt account:http://gamejolt.com/profile/masgame/409321/
B
33
S
12
G
3
Posts: 38
Reputation: 4,542


Return to How do I....?

Who is online

Users browsing this forum: plinkie, rayolf and 6 guests