I'm trying to make a system that spreads a player's control over the terrain. The terrain is pre-made of hexagons.
Each hexagon has a cost (like the one used in pathing). so when the player places a base in an hexagon with no owner, control spreads from the base out.
The base has "power" to determine how far can it's control reach in every direction.
example image 1
example image 2
I tried to use a function to make each owned hexagon spread to every non-owned hexagon around it using the base "power". However I don't know how the make construct differentiate between instances in functions when every object is actually the same.
EDIT: I played around A LOT with it, and at least I got it to spread now... however it DOES NOT behave like i want it to =( CAPX v.2