Dec 192011

I entered the Ludum Dare game making competition this weekend as usual. The theme was “Alone”. I didn’t have any immediate ideas, so I began by making the basis for a platformer with the theme in mind. Then it sort of evolved as I came up with things I thought would be cool to add.


The tools I used:

  • Flashdevelop (IDE)
  • Flashpunk (Game library)
  • Photoshop
  • Audition (sound editing)
  • Cubase (music)
  • Chronolapse (timelapse recording)

I decided early on to make it atmospherical, and I put a lot of focus on the effects, sounds, music and animation.

Continue reading for more info and a post-mortem. Continue reading »

Jul 022011

Someone recently wondered how to pick a color of a pixel from the screen in as3. If you have a bitmap image you can simply grab the color value using BitmapData.getPixel(). But if you want to capture a pixel color value in the stage as the user sees it, including vector graphics, you need another technique.

The way I found was to make a 1×1 bitmap, and then drawing the stage to the bitmap using a translation matrix for the offset. The result is then in the single pixel of the bitmap.

public function pickColorFromStage(x:int, y:int):uint {
   var bmd:BitmapData = new BitmapData(1, 1, false, 0x000000);
   var matrix:Matrix = new Matrix();
   matrix.translate(-x, -y);
   bmd.draw(stage, matrix);
   return bmd.getPixel(0, 0);
 Posted by at 13:14