pathfinding

  1. F

    Legacy GM Pathfinding AI with states

    Hi! I'm making an isometric action RPG using the same finite state machine as heartbeast's RPG-seies. I want to implement an AI-pathfinding system but I can't make it work. What i want is enemies that use the different states but also avoid obstacles such as walls and other stuff. This is the...
  2. Bingdom

    mp_grid - Closest point on a allowed cell to a forbidden cell

    Hello GMC! Today, i have encountered a really tough problem and i need help figuring it out. So basically i currently have set up my AI path finding using mp_grid, and everything is working fine EXCEPT when i try to set a path to a forbidden cell. I want to know how to make the AI to move to...
  3. G

    Help with pathfinding in a turn based game

    Hi, im triyng to make my enemies move when the player is in range in a roguelike turnbased game, like pkm mystery dungeon series, but i cant find a method to use the path integrated in gamemaker to make them move only one time during their turn,because i dont find how to know the x/y of the next...
  4. A

    Making enemies avoid each other [solved]

    Hi everyone. I need some advice for setting up enemy pathfinding. I'm working on a variation of a tower defence game where the enemies will advance towards a target, then start shooting it once they get in range. I've set up pathfinding using the grid system and it's working fine except... the...
  5. M

    Legacy GM Path Finding Issue - Path ends whenever player collides with the instance added

    Hello All, I am back again with a question regarding AI and path finding. I am currently using mp_grid as a way for enemy to do path finding, how I set this up is: Create Event: ai_grid = mp_grid_create(0,0,room_width/32,room_height/32,32,32); ai_path = path_add()...
  6. M

    Issue: path_add() is not a function?

    Hello and thank you for checking out my problem. I'm trying to add path finding to an enemy in my RPG game but game maker keeps telling me that the path_add() function doesn't exist. Whenever I insert a function into the code it lights up yellow to verify that it is reading it but when I type...
  7. sergeantIndie

    Legacy GM Turn-Based Strategy 101 video series

    GM Version: Game Maker: Studio Target Platform: PC centric Download: N/A (considering providing individual links for each video if people are interested) Links: Complete Tutorial Playlist Summary: Turn-Based Strategy is a complex genre, this is the first couple bits of my seventeen video series...
  8. S

    Trafic in my pathfinding

    HI, i have a game with a lot of objects with pathfinding. Some objects can go in the same coordinate x, y. When first object come in coordinate x,y, the other object change "target" and go in other coordinate x,y. The problem is sometimes when the first coordinate x,y are busy when the other...
  9. B

    Grid based pathfinding- Ai gets stuck at corners

    Hello GM-Community, In my game I use grid based pathfinding for my enemy ai. In theory everthing works fine but if the path goes around corners or is very near to my wall instances, the ai can get stuck or cannot even follow the path anymore at all. Solved: Changed the grid size to 16 by 16...
  10. W

    Legacy GM MP Grid Path Finding - get stuck at corners

    Hello GM Community, I have a problem with mp grid path finding. My grid size is 8 by 8 and I even placed my walls according to this grid, but often the ai gets stuck at corners or in walls if the path is too near to a corner or the destination too close to a wall. I already decreased the size of...
  11. Lumenflower

    Legacy GM Grid-Based Pathfinding in Three Dimensions

    I'm currently working on a project in which the player can build a small, multi-levelled environment (think FTL with several layers) and certain 'minions' navigate it autonomously. Successive floors are connected by staircases. The problem is that I don't know how to approach writing the...
  12. S

    pathfinding canghe sprite

    hi guys, i have a object. this object must go in a specific point. to go in this point it needs avoid other object. i do it with pathfinding everything works. I have a problem with change sprite. The object have a different sprite for every direction.3 change sprite work good but when object go...
  13. V

    Find Object Closest To End and Beg of Path...

    So I have a problem I am using my path in a tower defense game and I want to implement targeting of specific enemies in a specific point on the path. I think path_position has something to do with it but, I cant figure out how to check which instance of enemy_parent (all enemies) is closest to...
  14. frozenwisp

    Pathfinding

    Can I use pathfinding and the in built physics system and if so how?
  15. T

    Custom AI Pathfinding

    This is a specific question related to code I have created in my studio's game. On the old forums I asked for assistance in solving a pathfinding problem I have for AI. http://gmc.yoyogames.com/index.php?showtopic=680691#entry4898982 I am using GameMaker's pathfinding system to calculate a...
Top