L
Loxias
Guest
Hello GMC,
I am having some issues with my AI. When my player moves he creates a trail of slime behind him, but the AI gets "stuck" in it, and refuse to move unless the player has roughly the same X or Y axis. Here is the code:
It is also worth mentioning that the AI will try to pathfind around the slime, and only enter if the player matches its own X or Y position.
Thanks in advance,
Loxias
I am having some issues with my AI. When my player moves he creates a trail of slime behind him, but the AI gets "stuck" in it, and refuse to move unless the player has roughly the same X or Y axis. Here is the code:
Code:
grid = mp_grid_create(0,0,room_width/16,room_height/16,16,16);
grid = mp_grid_create(0,0,room_width/16,room_height/16,16,16);
path = path_add();
mp_grid_add_instances(path,objWall,true);
mp_grid_path(grid,path,x,y,objPlayer.x,objPlayer.y,true);
path_start(path,0.8,"",true);
Thanks in advance,
Loxias