Hey there! I'm trying to make a hex-based game where the player can chain attacks between enemies on adjacent hexes. For testing purposes, I am just using 5 hexes, but there will be 31 on the final grid.
I am attaching both my project and a screenshot showing an example of what I'm hoping to do with one of the powers, Jolt. With Jolt, the player can shoot lightning at a robotic unit (the 'S' in the screenshot), which will chain to other robotic units (like the 'Z's). So the player will click the power, click an enemy, and the attack will auto-chain to relevant enemies.
I have it so that the spawn points on each tile register which enemy type is where. Which is great. But I'm stumped by the next step: how do I get this attack to a) know which enemies are next to it, and b) chain appropriately?
Thanks in advance for your help!
https://drive.google.com/drive/folders/105X6atSPvtSDtg291ZYKjWd6cAfbcPrC?usp=sharing