| Mirage Source http://miragesource.net/forums/ |
|
| Can someone help me on this walking bug http://miragesource.net/forums/viewtopic.php?f=201&t=805 |
Page 1 of 1 |
| Author: | Forte [ Thu Dec 07, 2006 5:42 am ] |
| Post subject: | Can someone help me on this walking bug |
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 [/quote]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] |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|