Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How Do I Spawn Actors Exponentially?

uhyanauhyana Posts: 36Member
edited March 2012 in Working with GS (Mac)
I have a actor spawning another actor every 5 seconds. I want the actors to spawn exponentially. I know how to do some basic exponential equations I just need to know how to set it up in the spawner. For example, I want the first actor to spawn in lets say 5 seconds, the next one in 4.75 seconds, next one 4.25 etc. It would be greatly appreciated if anyone could tell me or show me an example how to do this.

Best Answer

  • POMPOM Posts: 2,599Member
    edited March 2012 Accepted Answer
    Hey mate ,
    I do it using the "self.time" attribute .. capturing it to a temp attribute , and make a rule based on a pre made Delta , and reduce that delta after every spawn and recapture "self.time" ..

    I made a quick demo for you , see the rule for the spawn its very simple !

    Photobucket Roy


  • uhyanauhyana Posts: 36Member
    Thanks for the quick reply! I appreciate the time you took to make that quick demo.It was very simple, I just copied it into my project.
  • Dizzy PugDizzy Pug Posts: 41Member
    This was also helpful.

    It was either increase the spawn rate of actors or increase gravity after time.

    How would I go about increasing gravity exponentially after X amount of time?

This discussion has been closed.