VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RE: >>> Go Directly to this topic << Carl Warwick (5 replies, 0 views) (2000-Sep-9) Well, say your tiles are 32x32, and I'm presuming your tile array is a 2D array, eg. (5,5) or whatever. then to get the tile the player is on you would just divide the players world coordinate by 32.
eg. TileX = PlayerXworld \ 32 '(use \ instead of / because you want an integer.)
|