Post

 Resources 

Console


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.)


-
Up One Level | Back to Forum

\ or / What's the difference? NT Almar Joling (4 replies) (2000-Sep-10)
The difference Peter (3 replies) (2000-Sep-10)
Thanks! *NT* Almar Joling (1 reply) (2000-Sep-10)
yea thanks! Stuart Zahn (0 replies) (2000-Sep-10)
Integer maths is faster as well... *nt Jack Hoxley (0 replies) (2000-Sep-11)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 227 visitors within the last 20 minutes
RSS News Feed