Tag Archives: actionscript

Actionscript Collision Detection 2: Circle Line Collision Detection

The last post in this series showed how to determine if two circles are colliding, and also how to separate them. In this post we will show how to tell when a circle collides with a line, like a platform … Continue reading

Posted in Tutorials | Tagged , , , , , , , , , , , | 2 Comments

Actionscript Collision Detection: Circle-Circle Collision Detection

Simple Billiard Physics (Stop using hitTest) In most flash game forums, the #1 question I come across has to do with collision detection. Everyone wants to know “What is teh best way to do collison detection for my game?” The … Continue reading

Posted in Tutorials | Tagged , , , , , , , , , , | 1 Comment

10 Ways to Write Awful Code in AS3.

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.“ - Martin Golding Sometimes people ask me, “Zach? My code is too easy to read and maintain. Nobody appreciates … Continue reading

Posted in Opinion, Tutorials | Tagged , , , , , | 7 Comments

Flipping A BitmapData Image

Here’s a handy code snippet for flipping the pixels of a bitmapdata, and ending up with a new bitmap data that is the mirror image of the original. function flipBitmapData(original:BitmapData, axis:String = "x"):BitmapData { var flipped:BitmapData = new BitmapData(original.width, original.height, … Continue reading

Posted in Code Snippets, Tutorials | Tagged , , , | 1 Comment

AS3 Starfield “Flying Though Space” only 4k

This movie requires Flash Player 10 Ready to make a game in which you fly through space at high speeds, blasting enemy after enemy? Me too. And here is a nifty Starfield Effect using pure AS3 Object Oriented Classes. Want … Continue reading

Posted in Tutorials | Tagged , , , , , , , , , , , | 2 Comments