@Garrettwademan

it would be great if you share a working example that I can study with.

i tried your code but i have a problem making it to work.

the player bmap won't move

and also what values should i put in the following

var player_map_x;
var player_map_y;
var reference_x;
var reference_y;
var x_compensation;
var y_compensation;

please help me. thanks!