Quantcast
Channel: Answers for "Spawn System Working but not the way i want"
Browsing latest articles
Browse All 6 View Live

Answer by aldonaletto

You could simplify the Enemy class to just hold the percentage, and use *Random.Range(0, 100)* to draw a number in the range 0..99. If you want to spawn at most one enemy each time SpawnEnemies is...

View Article


Answer by kalvinlyle

I'm using a similar system for something in my game. This is modified version of that script where I've added an array in place of your random generation. As a best practice it's usually preferable...

View Article

Browsing latest articles
Browse All 6 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>