Help with random spawning
devmatt
Member Posts: 38
We are making a game where objects are spawning from the same spot, progressively faster, but at random times so that it is unpredictable. We are struggling with figuring out how to make these actors literally spawn RANDOMLY. When we pick random, it shows "(min,max)" but no matter what, it is always fixed to spawn at one number. For instance, if we picked "Random(1,5)" the actor will spawn at any number from 1, to 5. Say it picks 4, it will constantly spawn every four seconds, every time. We want it so that it is randomly spawning, say every 1, 5 seconds. Any help? Any templates?
We've asked similar questions before but we are still struggling with it.
Comments
If you are using a Timer behavior, it does not work to change the duration after the scene loads. You'll have to use a custom timer. See my demo: http://forums.gamesalad.com/discussion/comment/464547/#Comment_464547
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User