| Mirage Source http://www.miragesource.net/forums/ |
|
| Mapping offset incorrect. http://www.miragesource.net/forums/viewtopic.php?f=201&t=2637 |
Page 1 of 1 |
| Author: | JohnY [ Thu Sep 06, 2007 6:19 pm ] |
| Post subject: | Mapping offset incorrect. |
I just added the seamless scrolling maps, I have to be in the center of the map in order to place the tiles on the spots I click, if I stand on a other spot and click on the place I want the tile, it will appear on a different spot. How do I fix this offset? |
|
| Author: | JohnY [ Thu Sep 06, 2007 6:57 pm ] |
| Post subject: | Re: Mapping offset incorrect. |
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. |
|
| Author: | Robin [ Thu Sep 06, 2007 10:32 pm ] |
| Post subject: | Re: Mapping offset incorrect. |
That's probably because of the code which makes the map stop scrolling if there isn't a map in that direction. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|