View Single Post
  #3  
Old 06-26-2013, 05:32 AM
baseman101 baseman101 is offline
Scripter
baseman101's Avatar
Join Date: Nov 2012
Location: Purcellville, VA
Posts: 76
baseman101 will become famous soon enough
Quote:
Originally Posted by cbk1994 View Post
Just take the player's x and y mod 64 (the width/height of a level):

PHP Code:
temp.temp.pl.64;
temp.temp.pl.64
% is the modulo operator (the remainder of division).

This will give you the player's x/y relative to the top-left of their current level, rather than the top-left of the entire GMAP.
Thank you very much! You were a giant help, kudos
Reply With Quote