I want to modify the cursor to move like it would be in a grid. I want the layer to be 1 grid consisting of squares and the cursor can only move from square to square. The grid should only be visible in a range of 1 square around the square, in which the player sprite is displayed. (2D Platform view, not Top down) Furthermore I want to be able to know on which square the player clicked to do further things.
I hope you understand what I mean and can help me to accomplish this.