mp_grid_clear_all(global.grid); mp_grid_add_instances(global.grid,ground,1); mp_grid_path(global.grid,path,x,y,player.x,player.y,1);In room's creation code:
global.grid = mp_grid_create(0,0,room_width/16,room_height/16,16,16);It works for the most part, but the object that is going to player barely avoids "ground". Ground is a square 32x32 pixel object and solid. The object with the path will avoid the center of ground but still run into the sides and get stuck there. It has worked before, but now I don't know what the problem could be.
What did I do wrong?
Edited by Lbckf, 25 June 2012 - 09:17 PM.