Spawning incrementing amount of actors

Hello. I'm making a simple game that needs to spawn a variable amount of actors, incrementing by 1 after a certain amount of elapsed time.

I.E. If I have 1 actor spawning at the start, I want to be able to spawn 2 actors after 5 seconds, 3 after another 5 seconds etc.
I haven't found anything that lets me do this in game salad so far, and googleing the issue has resulted in nothing. Please help.

Comments

  • OkyshoOkysho Member Posts: 158

    Bumping this because I could really use the help

  • OkyshoOkysho Member Posts: 158

    Bumping this again.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    First set up a Game Level Integer Attribute called spawnAmount

    You'll need to have all your spawn behaviors reference this attribute to spawn their number of enemies.

    In a game control actor add a Timer Behavior that says:

    Timer: Every 5 seconds
    Change Attribute: spawnAmount to spawnAmount +1
    

    Now every 5 seconds the amount of actors spawned will increase by 1.

Sign In or Register to comment.