Mirage Source
Scrolling Maps Tut Error. - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Scrolling Maps Tut Error. (/showthread.php?tid=1234)



Scrolling Maps Tut Error. - JohnY - 30-08-2007

I've added it correctly as the tutorial said and i've read it line by line.

it highlights the following line:

Code:
With SMaps(MapNum).Tile(RealX, RealY)


in:

Code:
If MapNum = -1 Then
        With Map.Tile(RealX, RealY)
              Ground = .Ground
              Anim1 = .Mask
              Anim2 = .Anim
        End With
    Else
        With SMaps(MapNum).Tile(RealX, RealY)
              Ground = .Ground
              Anim1 = .Mask
              Anim2 = .Anim
        End With
    End If

This piece is placed in Sub BltTile, I'm getting Subscript out of range, Run-Time error 9.

Anyone know if I forgot anything or so?