Useful if you have a grid based game. Set X to mousex/28, round, x28 Set Y to mousey/28, round, x28 If you divide something by a number, e.g. 28, round it to the nearest integer, then multiply it by 28, you get a multiple of 28 whichh would be the x or y coordinate.