Glitter Thrust

I was playing around with Flint 1.0.2 and a bit of Asteroids ship code that I had (from the Keith Peters AS3 Animation book.) I had the emitter following the ship, leaving a nice particle trail as it went. And then it occurred to me – why not make the particle renderer a mask for an image? A couple of minutes later and the end result surprised even me! Fly around with the cursor keys, as you do so your ship will push the swirling black smoke away revealing the picture behind, leaving a trail of shiny glitter particles as it does so.

Posted on April 25th 2008 at 7:52 pm by .
View more posts in Experiments. Follow responses via the RSS 2.0 feed.


8 Responses

Leave a comment
  • Jake
    April 25th 2008 at 10:40 pm

    Wow! I am very impressed with the speed of AS3. It’s turning into a really powerful game language. Two years ago I would have sworn that this example was made in Java.

  • TheDude
    October 30th 2008 at 5:27 pm

    How about some code there bud?

  • February 14th 2012 at 1:03 pm

    Why does his arm stay lit for longer? Does it have to do with the colour?

  • February 14th 2012 at 1:20 pm

    Oh, it is a sink.

  • January 10th 2013 at 8:57 pm

    5 years later and this is still fricken cool. But dude, care to dig up that source code? Having a heck of a time applying a BitmapRenderer as a mask. Would love to see your source if you care to share.

  • January 10th 2013 at 9:26 pm

    Here you go: https://dl.dropbox.com/u/182996/GlitterMan.zip

    Warning – this uses very old versions of flint, and I modified it a bit so I think it just uses the mouse pointer not the ship, but the effect is still the same.

  • January 10th 2013 at 9:43 pm

    Thanks Richard! It’s awesome that you responded so quickly. I was checking out Flixel in the meantime. Very cool. Has it had a lot of adoption?

  • January 10th 2013 at 9:45 pm

    Flixel? Yeah it’s easily the most popular Flash game framework.

Make yourself heard