spawning an actor with another actor with a random timer and spawner

liamoliamo Member Posts: 191
edited November -1 in Working with GS (Mac)
hi guys,
I have a random spawning behavior and I want to spawn two actors together, there are going to be more than one actors and I can't use constrains. Thanks in advance...

Liamo

Comments

  • Grubby_NerdblenderGrubby_Nerdblender Member Posts: 22
    I guess you could try something along the lines of this:

    Every (ammount of time between spawns):

    change attribute (game.spawnLocationX) to where you want the spawn X to be (probably RND)
    change attribute (game.spawnLocationY) to where you want the spawn Y to be (probably RND)

    Spawn actor 1 at (game.spawnLocationX,SpawnlocationY) + or - any offset needed.
    Spawn actor 2 at (game.spawnLocationX,SpawnlocationY) + or - any offset needed.

    Rinse and repeat.

    This would only work for spawning 1 actor (group of actors) at a time, unless you had multiple instances of his behaviour going on, each with their own attributes. Also it wouldn't account for if they also need to move in unison, but that's not what you asked so hopefully this is enough to answer your question.
Sign In or Register to comment.