30.08.2009, 04:15
Alright, well after allot of testing I finally got it, I looked at some live map scripts which also helped.
So this is the code that works:
Now, I need to figure out how to get the mouse pos to read in decimals, eg 3223.4322 instead of just 3223.
So this is the code that works:
Код:
Xpos = (-(((e.X * -1) + (pictureBox.Width / 2)) / 2) * (pictureBox.Width / (pictureBox.Width / 2))); Ypos = ((((e.Y * -1) + (pictureBox.Height / 2)) / 2) * (pictureBox.Height / (pictureBox.Height / 2)));