M
mtski
Guest
Hi guys,
So, I am attempting to make a collision system between many obj_unit objects. I have successfully implimented my own drag, select and set target system that these objects follow.
My issue is with collisions between these objects. I'm mostly trying to practice with GML at this point so I do not want to limit ideas on how this might be handled.
At this point, I have set a "Collision Event" for the obj_unit, but upon having many in the room, they just get stuck on one another and I'm not sure how I should have them handle separating to continue their course to their target. Any ideas on this?
I have though about looking into pathing, but I have no experience with pathing. Is it possible to use something like place_meeting(x + dir, y + dir, obj_unit)? - Iv noticed this is completely incorrect as dir is just a number and does not translate well when used in this function. But maybe there is a way to implement this?
Thanks for any advice
So, I am attempting to make a collision system between many obj_unit objects. I have successfully implimented my own drag, select and set target system that these objects follow.
My issue is with collisions between these objects. I'm mostly trying to practice with GML at this point so I do not want to limit ideas on how this might be handled.
At this point, I have set a "Collision Event" for the obj_unit, but upon having many in the room, they just get stuck on one another and I'm not sure how I should have them handle separating to continue their course to their target. Any ideas on this?
I have though about looking into pathing, but I have no experience with pathing. Is it possible to use something like place_meeting(x + dir, y + dir, obj_unit)? - Iv noticed this is completely incorrect as dir is just a number and does not translate well when used in this function. But maybe there is a way to implement this?
Thanks for any advice