BananaPandaDemographic
Member
So I have a Pac-Man like game and it's functional but the frame rate goes down when too many enemies are seeking out the player. there are only 10 enemies on the board at one time plus the Minotaur who is always chasing down the player. I think maybe grid pathfinding might help but I would have to learn how to use them.
I do know that when I tried to put (if player exists) instead of (collision circle) that the frame rate almost crashed the game. I also think game states could help but not sure where or how to implement them.
Enemy step:
I do know that when I tried to put (if player exists) instead of (collision circle) that the frame rate almost crashed the game. I also think game states could help but not sure where or how to implement them.
Enemy step:
Code:
var myPath = path_add();
if (collision_circle(x,y,576,objPlayer,false,true)) {
mp_potential_path(myPath,objPlayer.x,objPlayer.y,4,4,false);
path_start(myPath,4,path_action_stop,true);
}