translating location to map coordinates
let us say you have a character moving across the screen, and you want to have it’s location in terms of the map coordinate like (0,0), (3,2) instead of the actual location, like if you want to generate some obstacles in his path, here’s how you do it : demo move the mouse and see …