pathing

  1. peter798

    Objects getting stuck inside walls when using dynamic mp grids

    Hello! I implemented dynamic mp grids from this guide, and it works, but the objects often get stuck inside walls. Why? I have made a video showing it. Video: Janky dynamic pathing
  2. X

    GameMaker Squad Pathing

    I'm working on a game that allows the player to control multiple units, but I'm having some difficulty with the pathing. Right now, I've got very basic movement working for a single unit. It follows a path set to it by a mouse click, avoids walls, and stays on the global grid. When I add a...
  3. C

    GameMaker Pathfinding: travelling between diagonally adjacent forbidden zones

    Hi folks, any thoughts on the following problem are greatly appreciated! This post comes with the common caveat: noob at this, please be patient :) My aim: to get an instance to pathfind between diagonally adjacent corners of tile-based obstacles. The problem: with mp_grid forbidden zones (in...
  4. Dreadusa

    Tips for smoother AI pathing?

    Currently I'm using a basic grid system to create a path for all of my enemies, they all use the same grid but it's a bit jittery. The path updates every frame to follow the player's X and Y coordinates, and the enemies move relatively fast to the player at a speed of 4 pixels per second while...
  5. D

    Path finding while staying in a specific path shape.

    I have a player object that has a specific path pattern which is straight up and to the right 45 degrees. He can follow that path easily but when there is something in his way he cant find a way around it. I know I could use potential step functions but then the shape of his path is lost. Is...
  6. P

    Pathing Question

    When creating an instance of an object from another object (e.g. new_instance=instance_create(x,y,new_object) how would you also set a path for that other object without setting the path within code of the other object? Also, when using paths for movement how can you change animation based on...
  7. BerserkMecha

    GML Movement issues with DS Grids and MP Grids

    Hi, I'm making a movement system that uses DS Grids and MP Grids. This is for a turn-based strategy game that I have an idea for. The gist of this script is to move an object (called Character2) to a space withing a limited range around it. Unfortunately, I'm having issues. In the create...
  8. Fabseven

    Game slowing down with 500+ monsters.

    Hellow there, I am still developping my first game and trying different things. In my game i have got monster. (code at the end of the post) The monsters follow a path like in a tower defense game and shoot at player or buildings if near. While shooting if the target is out of range or...
  9. T

    Legacy GM Finding which path is shortest

    So I am creating code for a game where there are 4 players, and the enemy needs to path its way to one of them. The code is working with one player, but once other players are added all of the enemies will still only follow player 1. I created an array path[] to store the 1-4 path(s). So I...
Top