Mirage Engine
Can someone help me on this walking bug - Printable Version

+- Mirage Engine (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: Can someone help me on this walking bug (/showthread.php?tid=450)



Can someone help me on this walking bug - Forte - 07-12-2006

Hey guys, i was testing out my code and i got an error. When i logged onto my game i was on an "off" tile. when i typed /loc it gave me like X=18 and Y=67. but my max mapx and why are 14 and 19. also when i tried to move, or warp i get this error

Code:
' Check to see if they are trying to go out of bounds
        If GetPlayerX(MyIndex) < MAX_MAPX Then
            ' Check to see if the map tile is blocked or not
            If Map.Tile(GetPlayerX(MyIndex) + 1, GetPlayerY(MyIndex)).Type = TILE_TYPE_BLOCKED Then
                CanMove = False
                
                ' Set the new direction if they weren't facing that direction
                If d  DIR_RIGHT Then
                    Call SendPlayerDir
                End If
                Exit Function
            End If
[/quote]

Code:
If Map.Tile(GetPlayerX(MyIndex) + 1, GetPlayerY(MyIndex)).Type = TILE_TYPE_BLOCKED Then

if anybody knows how to fix this and u post it il forever thank you XD
thanks, quake[/quote]