Spawn Actor (Finished)

Mathiashelseth99Mathiashelseth99 Member Posts: 37
edited July 2013 in Working with GS (Mac)
Hi i wonder if it is possible to only spawn one actor in a random time???

Comments

  • ORBZORBZ Member Posts: 1,304
    edited July 2013
    sure

    game variable: spawnCount (integer)

    inside the spawning actor add this behavior:

    Timer: after random(0,5) // that's 0 to 5 seconds
    rule when spawnCount < MAX (in your case MAX=1)
    - spawn Actor

    inside the spawned actor add this behavior:

    change attribute game.spawnCount = game.spawnCount + 1
  • Mathiashelseth99Mathiashelseth99 Member Posts: 37
    Thanks ;)
  • Mathiashelseth99Mathiashelseth99 Member Posts: 37
    How do you then add text and sounds when the actor comes up?
Sign In or Register to comment.