toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
StarField Screensaver- recycle stars?
SkyMaple
Member
Posts:
817
May 2011
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
quantumsheep
Member
Posts:
8,188
May 2011
Use particles
SkyMaple
Member
Posts:
817
May 2011
how would I be able to achieve the same effect of flying through space with the star zooming by?
design219
Member
Posts:
2,273
May 2011
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.
SkyMaple
Member
Posts:
817
May 2011
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)
quantumsheep
Member
Posts:
8,188
May 2011
Exactly - and you can make them change size too
design219
Member
Posts:
2,273
May 2011
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?
SkyMaple
Member
Posts:
817
May 2011
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.
Comments
But i figured out how to do it with particles! I set the emitter to the center and the direction to random(0,360)
I would post the link but its broken