06-09-2007, 06:57 PM
I found out it's in sub EditorMouseDown
but I can't find the correct x1 and y1
currently using:
x1 = Int(x / PIC_X) + (Player(MyIndex).x - Int(MAX_MAPX / 2))
y1 = Int(y / PIC_Y) + (Player(MyIndex).y - Int(MAX_MAPY / 2))
it works for y 6 and up, but when I walk below Y 6 it just messes it up again.
EDIT: The mapping works fine, unless it doesn't have any surrounding maps on the map i'm trying to map, if there aren't any the offset just isn't correct.
but I can't find the correct x1 and y1
currently using:
x1 = Int(x / PIC_X) + (Player(MyIndex).x - Int(MAX_MAPX / 2))
y1 = Int(y / PIC_Y) + (Player(MyIndex).y - Int(MAX_MAPY / 2))
it works for y 6 and up, but when I walk below Y 6 it just messes it up again.
EDIT: The mapping works fine, unless it doesn't have any surrounding maps on the map i'm trying to map, if there aren't any the offset just isn't correct.