• 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. T

    Need help stopping an NPC at the middle of a path

    So i've been following this tutorial on NPC paths : and successfully made the base obj as in the video. Here's the code(path related only): obj_NPCBase: <CREATE EVENT> //Path Target = instance_create(x,y,obj_target); Path = -1; <STEP EVENT> if(Path != -1){ dir =...
  2. C

    GML when I choose another instance this one takes the value of the previous one

    Hello, (sorry for my bad English, I'm Belgian) I select an instance, it follows a path, at the end of it I modify a variable of this instance. The problem is that if I select another instance of the object while the first continues its path, when the path is finished, the variable of the second...
  3. S

    GameMaker SOLVED : Path timing

    Hi, wanted to just ask if there is a way to time a path, like after 10 secs of being in room the path stars.
  4. S

    SOLVED : Path in certain room

    Hi , I wanted to make a objPlayer in one room to be doing a path, as in a cutscene but when I add : path_start(path11, 1 ,path_action_stop, true) , the path is in every room. Is there a way it can be done in a certain room and destroyed after it is performed?
  5. C

    GameMaker Trying to make an object walk a path frowards and backwards indefinetly

    I am trying to make enemies walk a certain path forwards and backwards indefinetly when they are in patrol mode. I have tried setting the endaction to path_action_reverse but this only makes the enemy follow the path to the end, follow the path backwards, then follow half of the path forward...
  6. R

    Drawing a repeated primitive along a path

    Hi guys, So I have a simple path roughly in the shape of a circle and I want to repeat a texture around the entire length of the path. I'm using primitives because ultimately the path I'm going to apply this to is massive and this is the most efficient way so far to achieve this. Using a...
  7. A

    GML Instance exists in the line between 2 points

    Hello, So a projectile is created from the player and moves to the nearest enemy When a bullet meets a wall, it is destroyed I'd like to automatically target the nearest_enemy that the bullet can reach without being destroyed by a wall nearest_enemy = instance_nearest(x,y,oEnemy); // TODO ...
  8. C

    Object won't follow path!!! D:

    objMenu CREATE global.begin_path = 0; menu[2] = "New Game"; menu[1] = "Continue"; menu[0] = "Exit Game"; menu_cursor = 2; STEP case 2: SlideTransition(TRANS_MODE.NEXT); global.begin_path = +1 Case 2 brings me to the next room where: objHubPlayer STEP if global.begin_path = 1 {...
  9. Architheutis

    Path-Chaos: One character, different pathes/room - goes wrong!

    Hi guys. I´ve remarked it at different sites of my game: Some of my created enemies (manually droped down to patrolling-pathes, each one has its own path) seem to reappear in another rooms. I used one sprite (object) for several needs (different pathes in different rooms). For example I gave a...
  10. Dr_Nomz

    Legacy GM Is it possible to save a path mid-way through? (Data Structure method)

    If I use a data structure (ds_map/list/grid) to save data, and an NPC is in the middle of a path, is it possible to save the position of the path the NPC is on, and then load it in WITH the NPC resuming it's path? I'm using path_position and path_start btw.
  11. F

    GML Branching Paths

    So I am working on a racing game that uses a path to spawn the race track it works great except I want to have the track have multiple ways to the finish line so does anyone know a good way to do this?
  12. Axl Trauts

    [Solved] Paths: floating objects orbiting around another object

    Hi I have been trying to do this: Have a boss generate a circle of orbiting meteors from its center, going up to its perimeter then the circle start moving. I have a boss3 object. It generates 12 instances of the small_meteor object that orbit around boss3. These small_meteor should appear at...
  13. R

    Jump to a position along a path

    Can anyone think of a way to jump to a position - perferably a percentage - along a path at any given moment? I'm making a game where the player follows a long path, but if something causes the game to stutter momentarily, i.e. a background resource, then everything goes out of sync. I'm...
  14. SuperRonanCraft

    GameMaker Path prediction for projectiles

    I've been trying to find a way to get the angle that a supposed turret will need to aim at taking into consideration projectile speed, distance and the current position an enemy is in to where they WILL be when a projectile could hit its mark This is what i have at the moment, this only aims...
  15. M

    GameMaker Path finding to go as close as possible to object

    Context: I'm working on a state-machine AI in a game where the perspective is top-down. I'm using GameMaker's built in path finding for my AI to walk to any given location. I want the AI to walk to a tree, it won't because the tree is a collision object and it technically intercepts the path...
  16. N

    GML Visual Making connected paths for a maze?

    Hey there! I'm a total rookie and I have no idea how to make it that my character can only walk within the light pathways (see attached file). Please tell me how to achieve this in DnD!
  17. S

    GameMaker [SOLVED] Possible bug in mp_linear_path_object()

    My top-down game uses procedurally generated levels, and I use the function mp_linear_path_object() after the map is completed to make sure there is a clear path to the exit. In theory, this function should return true if a path is found and false if it isn't. My problem is that in rare...
  18. P

    GameMaker Stop object at end of path, then reverse motion

    I have an object on a path, that starts at 0 speed, and increases to 10 speed when the player interacts with it. Once it reaches the end of the path, I want it to stop for a few seconds, then go backwards until it's back at the start of the path. But nothing I try seems to work. I've tried...
  19. E

    Legacy GM [Superbly Solved] How to change position during a path?

    So, question of the day. I have moon object and earth object. Moon object starting a looped path and have absolute = false that make relative path to its current position in Create Event. I need to change moon object's XY to earth object's XY, but when I change it's position, it don't doing...
  20. M

    Path condition

    How to write the condition when the sprite Collision with x and y of path change to mirror ?
Top