Using Expression in Timer with equation to create lightning

butterbeanbutterbean Member Posts: 4,315
edited November -1 in Working with GS (Mac)
Is there possibly an equation that can be used in a timer that can say, create lightning flashes at random intervals of time? Like flash twice over a period of 2-3 seconds, then flash 3 times again over period of 2-3 seconds or something like that?

I was thinking this might be possibly with the new expression added to the timer... any ideas?

Otherwise I was just going to create a spawner with various different timers for the lightning effect

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    I think I just added a random expression

    so:

    Every: Random (2,12)

    Spawn lightning

    Would spawn lightning at some point between 2 and 12 seconds.

    Does that help?

    QS
  • butterbeanbutterbean Member Posts: 4,315
    Yes thank you! :)

    How did you do the destroy behavior? Did you place it in the spawner or the actor itself? If so, how did you create that rule in conjunction with spawning the lightning at random?

    Thanks Quantum
  • quantumsheepquantumsheep Member Posts: 8,188
    In the lightning actor itself I put in a timer so that it destroyed itself after a period of time.
  • butterbeanbutterbean Member Posts: 4,315
    I put a destroy behavior in the lightning actor itself like you suggested above, and the game froze...
Sign In or Register to comment.