a* pathfinding

  1. J

    GML Enemies following the player

    I'm trying to do a AI A* system to make the enemys follow the player, ignoring the walls and finding the quickest way, but isn't works, the code is: obj_enemy: Step: var range = 300 switch(status){ case "stopped": if(distance_to_object(obj_player)<= range){ estado =...
  2. M

    GameMaker Problem with diagonal pathfinding with obstacles.

    Hello, I am trying to implement pathfinding in GMS using mp_grid. The idea is simple : when a player presses the LMB, the character moves to the target location. The code works, but unfortunately my character only moves diagonally when there is no adjacent obstacles. I want my character to chose...
  3. D

    Does anybody have a fast implementation of A* pathfinding?

    The built-in pathfinding is nice, but very limited (can't move through diagonally blocked paths, can't weight movement, etc). So I'll just write my own implementation of A*, right? Well I did. And it works. But it's sloooow. So I figured maybe these new structs that I used to track nodes...
  4. B

    GameMaker Algorithims in GameMaker2

    I am making a tutorial series on algorithms. This forum thread is made for discussion related to this series. You can download the project files here: https://drive.google.com/drive/folders/0B8Tlu81JV_hkWkFDd1I4TmFtamM?usp=sharing Playlist Link...
Top