How would you go about creating a random spawner for coins within a certain area? It has to re-spawn coins after the player has collected enough too

Viewed 37

I have a coin which rotates and changes size so far. I want to be able to set an area (which is not a nice square of course) that they can randomly spawn locations. The thing it has to do is once there are less that 7 coins then it spawns more.

Anyone able to give me some advice? Not sure what is most efficient method.

2 Answers

You can either make use of "Region3" or you can set up multiple possible spawn points and run a math.random function to choose which one.

Related