Flint Particle System Forum - Old stars screensaver 2012-05-26T06:41:20+01:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Old stars screensaver http://flintparticles.org/forum/comments.php?DiscussionID=550&Focus=1881#Comment_1881 2012-01-30T09:46:47+00:00 2012-05-26T06:41:20+01:00 okp http://flintparticles.org/forum/account.php?u=593 Hi all, a total-beginner question... I'd like to reproduce the old windows98 stars screensaver : stars are emitted in the center region, and moved / scaled up towards the edges of the ...
a total-beginner question...
I'd like to reproduce the old windows98 stars screensaver :
stars are emitted in the center region, and moved / scaled up towards the edges of the screen.

Seems really simple but i'm kinda lost with all thoses functionalities...

Thanks for your help !]]>
Old stars screensaver http://flintparticles.org/forum/comments.php?DiscussionID=550&Focus=1882#Comment_1882 2012-01-31T14:56:48+00:00 2012-05-26T06:41:20+01:00 czyky http://flintparticles.org/forum/account.php?u=594 Here's one hack to get you started on your journey to the stars. Notes: The last number in velocity controls the speed of the stars and instead of a dead zone, I just have the particles live for 4 ...
import org.flintparticles.common.actions.*;
import org.flintparticles.common.counters.*;
import org.flintparticles.common.displayObjects.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.threeD.actions.*;
import org.flintparticles.threeD.emitters.Emitter3D;
import org.flintparticles.threeD.initializers.*;
import org.flintparticles.threeD.renderers.*;
import org.flintparticles.threeD.zones.*;

[SWF(width='400', height='400', frameRate='30', backgroundColor='#000000')]
var emitter:Emitter3D = new Emitter3D();
emitter.counter = new Steady( 150 );

emitter.addInitializer( new ImageClass( Dot, 1) );
emitter.addInitializer( new ColorInit( 0xFFFFffff, 0xFFFFffff ) );
emitter.addInitializer( new Position( new PointZone( new Vector3D( stage.width / 2, stage.height / 2, 1000 )) ) );
emitter.addInitializer( new Velocity( new DiscZone( new Vector3D( -1, -1, -250 ), new Vector3D( 1, 1, -250 ), 30 ) ) );
emitter.addInitializer( new Lifetime( 4, 4 ) );

emitter.addAction( new Age() );
emitter.addAction( new Move() );

var renderer:BitmapRenderer = new BitmapRenderer( new Rectangle( 0, 0, 400, 400 ) );
renderer.addEmitter( emitter );
addChild( renderer );
emitter.start();]]>