07-12-2006, 05:42 AM
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
[/quote]
if anybody knows how to fix this and u post it il forever thank you XD
thanks, quake[/quote]
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
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]