Rob,
Updated the following code to limit the screen movement to the size of the map (as it currently stands without modifiying for a particular map size)
Put this code just before the render world
Also in the drawmap function the following is shown in each of the 4 layers:
If x+xoff>=0 And y+yoff>=0 And x+xoff<=255 And y+yofff<=255
I believe y+yofff should be y+yoff ?
Updated the following code to limit the screen movement to the size of the map (as it currently stands without modifiying for a particular map size)
If pl=First player If KeyDown(205) And pl\x<8192 Then mr=True If KeyDown(203) And pl\x>0 Then ml=True If KeyDown(200) And pl\y>0 Then mu=True If KeyDown(208) And pl\y<8192 Then md=True Else If KeyDown(32) And pl\x<8192 Then mr=True If KeyDown(30) And pl\x>0 Then ml=True If KeyDown(17) And pl\y>0 Then mu=True If KeyDown(31) And pl\y<8192 Then md=True EndIf
Put this code just before the render world
;Limit movement of screen to map If X < 0 Then X = 0 If X > 8192 - GraphicsWidth() Then X = 8192 - GraphicsWidth() If Y < 0 Then y = 0 If Y > 8192 - GraphicsHeight() Then Y = 8192 - GraphicsHeight()
Also in the drawmap function the following is shown in each of the 4 layers:
If x+xoff>=0 And y+yoff>=0 And x+xoff<=255 And y+yofff<=255
I believe y+yofff should be y+yoff ?