The tile will lock to your cursor in match with the tile size Feel free to use this for your project, just remember to credit
Tile locking code from griffpatch: (I don't remember the video, probably the Mario tutorials)