Get possition
#1

Hi.
How can i get center between 2 pos?
Reply
#2

Problem sloved.
Reply
#3

Example :
pawn Код:
x = 100
y = 200

x2 = 400
y2 = 800

x2 - x = 300 // Distance X
y2 - y = 600 // Distance Y

300 / 2 = 150
CenterX = x + 150 // 450


600 / 2 =  300
CenterY = Y + 300 // 500
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)