• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Good NPC path finding?

Dr_Nomz

Member
Hi, same problem as before, using a better system now. :/

So, is there a better pathfinding system than using the GRID, or can I make the NPC not jerk up and down when moving diagonally?

ALSO this is the code for my NPC's step event, in case that helps (or I did something wrong)
Code:
if (mp_grid_path(global.grid,path,x,y,obj_Character.x,obj_Character.y,true)){
  path_start(path,4,path_action_stop,false);
}
 
Top