Im trying to do kind of a weird thing; by taking the x or y coordinates from an object I want to get a looping number that repeats from zero everytime it hits 32 (for example, 32 is just used cause its the size of my tiles).
So the x coordinate of 4 would be 4 on my looping number and the x coordinate of 36 would also be 4.
So it basically just counts coordinates in cells the sizes of 32. Ive managed to do this before but I cant for the life of me remember how I did it.