M
mtski
Guest
Hi all,
Just a quick question hopefully. I have been working on my pathfinding system and so far everything seems to be mostly working. Sometimes my "units" are unable to find a path within the mp_grid I have setup and so I have them using mp_potential_step_object as I have no "Solid" objects in my game.
Is there a way to expand upon this to include different objects aside from using parenting? Reason being is I already have parent objects but I would like them to stay different from one another aside from issuing another grander parent if that makes sense. Here is my code so far on this:
Thanks for looking
Just a quick question hopefully. I have been working on my pathfinding system and so far everything seems to be mostly working. Sometimes my "units" are unable to find a path within the mp_grid I have setup and so I have them using mp_potential_step_object as I have no "Solid" objects in my game.
Is there a way to expand upon this to include different objects aside from using parenting? Reason being is I already have parent objects but I would like them to stay different from one another aside from issuing another grander parent if that makes sense. Here is my code so far on this:
Code:
path = path_add()
pathing = mp_grid_path(global.mpGrid,path,x,y,destinationTargetx,destinationTargety,1)
if pathing == 1 {
path_start(path,spd,path_action_stop,0)
}
else {
mp_potential_step_object(destinationTargetx,destinationTargety,spd,obj_stickPile) //new path
}