thandwiches01
Member
I was wanting to know if was any way I could check to see how many grid cells one object is away from another.
I just have a very basic grid, that I have each cell set to 32x32.
I have the player at once position in the grid, and was wanting to store the number of cells that are inbetween the player and the mouse, inside a variable.
I've been trying for the past hour, but I can't seem to figure it out.
Any help would be greatly appreciated.
I just have a very basic grid, that I have each cell set to 32x32.
I have the player at once position in the grid, and was wanting to store the number of cells that are inbetween the player and the mouse, inside a variable.
I've been trying for the past hour, but I can't seem to figure it out.
Any help would be greatly appreciated.