Hey gang,
Long time, but still kicking it. Working on my modified version of 1.4.6 (I'll release it if I ever finish Runsetter, I want it perfect). Ben, was wondering how you've implemented the map editor. I've noticed that it will scroll vertically for tiles larger than the screen resolution, but not horizontally. For example, if my screen resolution is 1024x768 and I have a bitmap that is 2048x2048 with tiles set at 1024x1024 each, then I can scroll vertically to select the tiles in view, but not the tiles not currently in view. Here's the lines of code I've altered, but don't seem to be taking effect:
This is inside the MapEdit class...
... ElseIf EditMode = 1 Then ...
If MouseX > HorizontalResolution - 16 Then TSOffsetX = TSOffsetX + 8 If TSOffsetX > Disp.HimetricToPixelX(theMap.MapLayer(EditLayer).TSDef.Image.Width) - HorizontalResolution Then TSOffsetX = Disp.HimetricToPixelX(theMap.MapLayer(EditLayer).TSDef.Image.Width) - HorizontalResolution End If End If If MouseX < 16 Then TSOffsetX = TSOffsetX - 8 End If If TSOffsetX < 0 Then TSOffsetX = 0 Disp.DrawTile MouseTS, 2, MouseX, MouseY, 0, 0, HorizontalResolution, VerticalResolution, True
|
Theoretically, it should work the same way it's drawn during runtime, so why isn't it scrolling?