I don't know how to make a boss AI but I know how to explain what I want it to be like ----------------------------PHASE 1----------------------------- The Triangular Destroyer aims crystals at the cube for 5 seconds then makes a big blast as big as 20 squares and aims it at the square and finally runs out of energy for 2 seconds so you can stomp on it and if you don't it does the same process again. -----------------------------PHASE 2---------------------------- In phase 2 it gets harder, The Triangular Destroyer turns to its second form and makes the square go really slow and decreases the jump height, then it chases the square well it is slow.3 seconds after that the slow effect wears off so it makes lava fall from the sky at random places. Finally it stops for 2 seconds giving the square a chance to jump on it and if the square does not The Triangular Destroyer does the same process again. ---------------------------PHASE 3------------------------------ And last but not least, The Triangular Destroyer slowly sucks the player in the opposite direction it is at with a black hole though if the square jumps it will get closer to The Triangular Destroyer but will also have a higher chance of getting hit (because The Triangular Destroyer will shoot random blast mostly at higher places) and if the square gets close enough to stomp on the boss and does it...the square wins!!!
hope you like it =)