BUT, IF there are more than 4 objects it doesn’t work. (I know that it’s =4 but if i replace it with >=4 it’ll delete ALL the rocks)
So how do i pick ONLY 4 CLOSEST rocks?
And if it won’t work there is a repeat action you can download or make a timer and make it delete one every .05 seconds or something and use a trigger once.
Right. I glossed over the fact it’s a crafting system. So you want to check there are at least 4 rocks within 100 pixels of the player, and then remove the 4 closest ones while generating a new object that replaces them? If there aren’t 4, then don’t delete or generate? My way to achieve this is :