KPJ
Member
Hi all. I have an issue in my top down game where enemies move toward the player. When there is more than one enemy, the enemies overlap and look like one. Here is my code:
Anyone know how to fix this? Thanks a lot!
Code:
//Enemy Create
grid = mp_grid_create(0, 0, room_width / 32, room_height /32, 32, 32);
mp_grid_add_instances(grid, oWall, false);
path = path_add();
//Enemy Step
mp_grid_path(grid, path, x, y, placeofinterestx, placeofinteresty, true);
path_start(path, enemyspd, path_action_stop, true);