| Subcribe via RSS

Tutorial: Creating a Dynamic Starfield with the Flint Particle System

June 9th, 2008 Posted in Flex, news

If you’re creating any sort of interactive environment in space in actionscript 3, this may be of interest to you: Tutorial: Creating a Dynamic Starfield wit the Flint Particle System

The basic concept:

  • Set up 4 particle emitters just outside the 4 edges of the screen
  • Feed the Starfield a velocity vector from your ship’s movement engine
  • use the velocity vector to give each generated particle a velocity opposite that of the ship
  • use the built-in garbage collector of the Flint Particle System to destroy stars that go off screen

Leave a Reply