Randomizing when actors spawn [Solved]

Edge123

  • Posts: 62
I've been trying to make an actor spawn obstacles at random times, but it keeps choosing a specific timed pattern rather then having a randomized timed pattern. This is the code I have for the actor:

https://imgur.com/a/KbgIXKT

How do I make it so spawning the actors have random timed patterns?

« Last Edit: October 19, 2019, 11:52:04 am by Edge123 »

merrak

  • *
  • Posts: 2738
it keeps choosing a specific timed pattern rather then having a randomized timed pattern.

The loop delay is set when the repetition is started and cannot be changed. What you can do instead is use 'do after N seconds' wrappers. Set the delay to a random value. At the end of the delayed behavior, set the delay to a new random value and use another 'do after N seconds' wrapper.

Edge123

  • Posts: 62
It all makes sense when using the "do after N seconds" block. Don't know why I didn't notice that before, but anyways, appreciate the help.