S
sully9088
Guest
I am using the function mp_potential_step_object to have my AI avoid running into walls and other objects in the room. I have an obj_npc_wall object, and obj_furniture_parent as the two main parents that govern the physical objects in the room. I need to use these two objects because my AI is constantly watching the player and may do different things if only furniture is blocking the "view" vs a wall blocking the view. My problem is that this function only allows you to use: a single object, an instance id, or 'all' for it to work. I only need this function to detect two objects. I do not want to make one object the parent of the other because that will mess up my need for two separate objects.
(note: I cannot use 'all' because the AI that is chasing my player is actually a "ghost" object. I have a dummy npc following the "ghost". The reason for this is because my game uses physics, and if an object is using physics in gamemaker; then you cannot use motion planning. if I use 'all' then my "ghost" will circle around the dummy npc)
So... is it possible to only tie two objects to this function? Or should I somehow come up with a third object that acts as the physical barrier, and use obj_npc_wall/obj_furniture_parent as the "eyes"??
(note: I cannot use 'all' because the AI that is chasing my player is actually a "ghost" object. I have a dummy npc following the "ghost". The reason for this is because my game uses physics, and if an object is using physics in gamemaker; then you cannot use motion planning. if I use 'all' then my "ghost" will circle around the dummy npc)
So... is it possible to only tie two objects to this function? Or should I somehow come up with a third object that acts as the physical barrier, and use obj_npc_wall/obj_furniture_parent as the "eyes"??