Go here for better quality! http://phosphorus.github.io/#131932684 I don't know why I didn't share this a year ago... -=- What the lines mean -=- Orange/red = direction/enemy it's attacking Orange dotted = closest ally Thick Purple to thin blue = ally too far dir Short blue = collision detection
This Project is here to show off what I've been recently creating Everything here is clones, all of it made with lists and algorithms I found online This project uses some "AI Flocking" techniques as long as an Anti-collision system Exactly what each clone does 1: looks through a list of data of each clone in the battle - if it finds an enemy within 100 steps it marks it as "the closest enemy unless there was a closer one found previously - clone will point towards enemy and move forward to get into range - when in range, the unit will fire at the closest enemy 2: While looking through the clone data, it will find and mark each ally within 120 steps into it's own personal list of "close allies" - if the clone is not in combat, it'll point in the average direction of all of it's "close allies" with a bit of added randomness and will move forward - again, if the close is not in combat, if it's too far from the closest ally (>80 steps) it'll move towards it