Problem with spawning Continuously

Andre87Andre87 Member Posts: 42
edited November -1 in Working with GS (Mac)
So, what I want to do is spawn tiny little white stars onto the screen as long an attribute called "Create Stars" is equal to true. Therefore the rule I set is:

Create Start = true, and I put a spawn actor action inside the rule.
This spawn only one star and thats it! What I want is to spawn stars continuously, at random locations, until the Create Stars attribute is set to false.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you might be better using particles. You can set the image to stars or whatever you want, control how many how often inbtween and set the random location.

    But for the way your saying you would need a timer so it would be when create star is true every .3 seconds (that time being how long of a pause you want inbetween the next star) and then in x position just put random(-300,300) or whatever you want.

    Again i recomend going the particle route. Same thing applys with the random for particles.
  • quantumsheepquantumsheep Member Posts: 8,188
    @John

    I used particles to make a starfield on one upcoming project and it looks really nice!

    One thing I've noticed with particles though is that it'll spawn 1 on its own, then rush the rest out together.

    Also, even with start-up times at 0, there's a pause before they spawn.

    Any insights, sir?

    QS :D
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    quantumsheep said:
    @John

    I used particles to make a starfield on one upcoming project and it looks really nice!

    One thing I've noticed with particles though is that it'll spawn 1 on its own, then rush the rest out together.

    Also, even with start-up times at 0, there's a pause before they spawn.

    Any insights, sir?

    QS :D

    cant wait to see it sheepy! Particles can do some real cool stuff if you play around with it and tweak how you like :)

    I also noticed the same thing happening with tehe startup. What i useally do to compansate is when i want the particles to trigger move a star or 2 that have been positioned offscreen to the particle start point, and then by adjusting the particle lifetime and speeds you can get it just right :)
  • quantumsheepquantumsheep Member Posts: 8,188
    JohnPapiomitis said:
    cant wait to see it sheepy! Particles can do some real cool stuff if you play around with it and tweak how you like :)

    I also noticed the same thing happening with tehe startup. What i useally do to compansate is when i want the particles to trigger move a star or 2 that have been positioned offscreen to the particle start point, and then by adjusting the particle lifetime and speeds you can get it just right :)

    Hey fella,

    It's not a big deal on the starfield - it still looks good :)

    The problem is with particle explosions - they seem to delay about a second after the first particle is spawned. so the explosion happens (in a fast paced game) *after* the actor's disappeared.

    It doesn't look awful, but I'd love to get it *right*

    Cheers,

    QS :D
  • Andre87Andre87 Member Posts: 42
    That particle thing is great! Why didnt I think of that? Anyway, thanks a lot.
Sign In or Register to comment.