18.03.2007, 14:21
Thanks guys for the comments appreciate it.
The San Andreas map is about 5920 units long, so you would set up the porportion:
For the X Coordinate:
XCoord Scaled Coord (Out)
_______ = ____________________
5920 Map's Image Length
And after that, for the X coord you would add half of the map's length to it.
For the Y Coordinate:
(-1*YCoord) Scaled Coord (Out)
____________ = ____________________
5920 Map's Image Length
So that it is mirrored.
And after that, once again, you would add half the map's length to it.
Hope that helped .
Quote:
Originally Posted by boylett
EDIT: how do you get the dots in the right place? Ive been trying for ages and I cant I need it for a PHP script.
|
For the X Coordinate:
XCoord Scaled Coord (Out)
_______ = ____________________
5920 Map's Image Length
And after that, for the X coord you would add half of the map's length to it.
For the Y Coordinate:
(-1*YCoord) Scaled Coord (Out)
____________ = ____________________
5920 Map's Image Length
So that it is mirrored.
And after that, once again, you would add half the map's length to it.
Hope that helped .