• 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!

path

  1. P

    GML Path not stopping- and i have no clue why

    Hey, so im changing my movement system from buttons to click to move and ive run into an issue. Im using a 32x32 mp_grid system. Right now, from idle state clicking an enemy changes my state to movement, and movement state creates a path to targetId coords and starts the path. Clicking an empty...
  2. 2

    SOLVED GM Version 5 (gmd flies) Script Code for Running Paths

    Does anyone know the code for starting and stopping a path, and setting the speed and end action in Game Maker version 5 (makes gmd fies)? The code in for doing so is different in (GM8,Studio 1 and 2.) I want convert some files to later versions, but I want to put it in scripts rather than the...
  3. I

    Problem with the movement of an object

    Hello again! I have a problem with the movement of an object that is driving me crazy because I don't understand why it happens. My initial idea was that when I pressed a button an object would appear that would do a small jumping animation, after a lot of trial and error I arrived at this...
  4. PlayerOne

    GML Checking and recalculating a path that has enemy/objects in the way?

    Hello, Need to determine how to check for an enemy, object, and or player is in the way of my path? Not sure what to do. I'm using a for loop to check for an object in the way but I need some help/clarification as to how I go about this. Also, I'm not sure how to go about updating a path mid...
  5. PlayerOne

    GameMaker Path needs to stop at the end and reset?

    Apologies up front if I'm not understanding how paths work in Game Maker and that my code is a little messy given how much I'm tinkering with it. Right now I'm still trying to grasp the understanding of how the path system in game maker 2.3. Essentially my problem is that I'm trying to figure...
  6. T

    GameMaker [SOLVED] How to check if a mp grid path is gonna get blocked?

    I know this question has been asked a lot before. I know the mp_grid_path() function returns true if it can find a path and it returns false if it can't find a path. I am making a tower defense game and I should check if a tower is going to block the path of the enemies before placing it down...
  7. H

    Object not moving on a path

    This may be a really simple question, but I'm having a big issue with it. I'm trying to create a path for a platform to follow using gamemaker's in-code path functions (not the path editor). Put simply, the platform just isn't moving despite the path being clearly defined (I can see it being...
  8. M

    Pathfinding problem

    I have the following pathfinding system: In the pathfinding object create event: // Crear grid grid = mp_grid_create(0,0, room_width/32, room_height/32, 32, 32); // Añadir paredes a la grid mp_grid_add_instances(grid, obj_colision, 0); In the enemy object create event: //Variables spd = 2...
  9. Tangerine

    GameMaker Path from inluded files can't be found in android VM

    I'm trying to load a file this way: model_path = "./Models/player_house.dat"; if(!file_exists(model_path)){ show_debug_message("File not Found: " + string(model_path)); return -1; } It works in windows, opera gx, html5, but for some reason I don't understand why this file is not found when...
  10. C

    One Of These Path Destinations Works. The Other Four Do Not

    The goal: I have a set of circles, a set of squares, and a track that connects them. When I click a circle, then a square, I want the circle to move along the track to the clicked square. The means: When a circle gets notified that it's time to move, it moves along three paths. The first, the...
  11. 2

    Legacy GM Move Along a Path Like An Animation Curve

    When going along a path the speed moves in the direction the path is going so that moving say 8 pixels can mean moving less in x or y if the line goes in a diagonal direction. This is normally what I want, but not this time. Is there a way to treat a path like an animation curve so that you find...
  12. P

    GameMaker How to create forks with paths?

    Hello there! I am just creating my very first project in Game Maker, so I´m not very familiar with a lot of the tools 😅 I am creating a tower defense game, where the player, instead of building tower defenses has to press switches to direct certain enemies to certain towers. I have just...
  13. Jotesco

    SOLVED Problem with multiple instance objects with the same Path

    So, i using a object with a butterfly sprite. Created various paths to make the butterflies more lively, if i stay with only one object of this butterfly, everything goes perfect, but if i add more of them, they start to glitch, changing the position suddenly. Here is my code: function...
  14. E

    GML Variable changed in creation code reverts back to what it was in create event

    I'm making a top down shooter and working on the enemy patrolling when it has returned to its start position, using a variable that was set to the patrol Path in creation code. When I run the debugger it shows that the patrolPath variable is set to 1 which is what I want it to be but when I...
  15. R

    I have a problem with the paths in GameMaker Studio 1

    I have monsters with paths in my game. When i start the game my monster follow his path normally but after a few seconds the monster moves a few pixels from left to right endlessly. How can i fix this bug ? (sorry for my bad english i'm bad in english)
  16. M

    Problem with the path following

    Greetings, I have a problem, I tried to make something like a maze generator, but it was very curved, so I decided to try to make its generation visible, and I found that for some reason my object does not see correctly the path between the desired coordinates Now it is heading to the object...
  17. M

    How to check the possibility of walking along the path?

    Greetings, can someone please advise me, how can I check whether an object has the ability to pass along the path or no, in real time? I tried to get away from mp_grid_path, but unfortunately it doesn't work as I though: mp_grid_add_instances(gr_id, Owall, true); //check likeexistence of...
  18. C

    GML Move Object Along Path Between Any Two Points?

    I'm trying to work out a system where the player can click on an object in the room and the player object will walk over to it and take an action, and you can chain multiple of these motions in a row. However, I want the player to move along a certain path- to avoid the appearance of just flying...
  19. S

    GameMaker path closes itself

    Hi, currently i´m working on paths created with the function path_add_point and im having the issue that automaticly when the path is created there is a connection created from the last point to the starting point. for showcasing purpose i have created an object and in its create event i have...
  20. P

    PathFinding with an offset

    Hi i wanted to make path finding with an offset but all i found is normal path finding can anybody help? my path finding code Prange = 2; path_delete(path); path = path_add(); //target target_x = Obj_Player.x; target_y = Obj_Player.y; //use grid mp_grid_path(Obj_SetupPath.grid ,path,x +...
Top