![]() ![]() Mp_grid_add_instances(global.zombie_ai_grid, obj_obstacle, false) Here's my grid creation code (in a CONTROLS class for initializing variables): global.zombie_ai_grid = mp_grid_create(0, 0, room_width / 50, (room_height - sp_dashboard.sprite_height) / 50, 50, 50) Is there a way I can add "all other enemies BUT self" with mp_grid_add_instances? To fix this, I also told the path to ignore enemies as well with mp_grid_add_instances, but then they stop moving altogether because they see themselves as obstacles, thus trapping themselves within a bounding box. However, these enemies can walk on top of each other when seeking the player. I have pathfinding set up using the GML A* pathfinding with mp_grid and a path. ![]() I have a game where there are multiple enemies who must chase a single player.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |