StarField Screensaver- recycle stars?

SkyMapleSkyMaple Member Posts: 817
edited November -1 in Working with GS (Mac)
I am working with the "starfield screensaver" demo. and i've found that all the stars are spawning. Whats the best way to recycle them?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Use particles :)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • SkyMapleSkyMaple Member Posts: 817
    how would I be able to achieve the same effect of flying through space with the star zooming by?

    :)
  • design219design219 Member Posts: 2,273
    You could just move them instead of re-spawning them. If I understand what you are doing, when a star hits the edge you could have it instantly move (and scale down if your stars get bigger as they approach) to the center of the screen again.
  • SkyMapleSkyMaple Member Posts: 817
    if you looked at the demo, you can see that its a bit more complex than that. I tried something but couldn't get it to work.

    But i figured out how to do it with particles! I set the emitter to the center and the direction to random(0,360)
  • quantumsheepquantumsheep Member Posts: 8,188
    Exactly - and you can make them change size too :)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • design219design219 Member Posts: 2,273
    SkyMaple said:
    if you looked at the demo, you can see that its a bit more complex than that.

    Did I miss something? What demo?
  • SkyMapleSkyMaple Member Posts: 817
    its a demo i found while searching "new" in GS. Its called "starfield screensaver"

    I would post the link but its broken
Sign In or Register to comment.