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 Rich.
View more posts in Experiments. Follow responses via the RSS 2.0 feed.
8 Responses
Leave a commentMake yourself heard
Hire Us
All about Photon Storm and our
HTML5 game development services
Recent Posts
OurGames
Filter our Content
- ActionScript3
- Art
- Cool Links
- Demoscene
- Flash Game Dev Tips
- Game Development
- Gaming
- Geek Shopping
- HTML5
- In the Media
- Phaser
- Phaser 3
- Projects
Brain Food
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.
How about some code there bud?
Why does his arm stay lit for longer? Does it have to do with the colour?
Oh, it is a sink.
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.
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.
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?
Flixel? Yeah it’s easily the most popular Flash game framework.