Unit combining possible?

How could i make (if its even possible) combining multiple units that make lag into less grouped ones for less lag like on the image
k
Im making a mining game with a lot of block ores and u need to mine out more to find more but the darkness makes u not see as far

1 Like

You can Try Making a Script when your Small Units Touch Eachother i will delete the first unit and upgrade the second into a bigger unit.

As much i remember you could try using gift wrapping algorithm, using the points of unit X,Y,width,height in an area to determine the width and height of your new unit if you know that the units are always aligned in a grid.

2 Likes

how would that work (they’re alligned in a 64 grid)