This forum post was made after discontinuing an old thread I realized is far more extensive than just the few questions I started out with.
My goals are and will have to remain for this thread:
1.) Use the Pathfinding behavior.
2.) Use a custom LOS ( Line of Sight ) object ( In my case an invisible sprite ).
3.) Work for multiples of the same instance, separately and individually.
I'll start with my last question on that forum post, I'm working on an AI behavior or path finding type ( each type is separated as modules I can request ).
The current one I'm working on is a horde behavior, and although I know how I wanna approach it, I lack the mathmatical know-how to make it work.
How do you make a sprite follow inbetween two moving points of the same instance?
Say I have 2 AI_Sprites, I want a huge box around them to use as a sprite counter, I need this box to be in the middle of all of them, and follow as they move until they break off from one-another.
I feel like the solution for this is as simple as an action, perhaps something like "distance(AI(AI.IID = 1).X/Y, AI(AI.IID = 2).X/Y)"
I used a similar formula in my first attempt which didn't work too well.
My current solution is casting a ray between AI#1 and AI#2, and spawning a sprite in the middle of those two points, and removing it when I don't need it.
This works, but I know this will lag after a couple hundred of them at once.
But obviously I'm sure someone else knows better so let me know, it has to follow the conditions above is the only take away, families are also off the table.