October Facebook Fan Bonus Now Available!

October Facebook Fan Bonus Now Available!

Fans of the Activetuts+ Facebook page can now access a new bonus tutorial – in this month’s Facebook Fan Bonus, you’ll learn how to remove the background color from a sprite sheet using AS3, and blit the result to a bitmap canvas.

Final Result Preview

Here’s a look at the kind of effect you’ll be working towards in this tutorial:

Blitting in Flash: removing background

Download This Fan Bonus Now!

All you have to do is Like us…


Not On Facebook?

Don’t worry, the tutorial will be posted on Activetuts+ in a month’s time!

  • hayesmaker

    1) Open in Photoshop or Gimp Shop
    2) Click Magic Wand tool
    3) Click the background area
    4) Hit delete
    5) done.

  • http://hardwareacceleratedreality.com Joseph Clover

    Well, that is one way. However, some artists like to keep the background color to make spiriting easier. Also, this method saves you from having to manually edit the image each time the artist updates it. I don’t have data on this but I believe having the Alpha channel in an image puts more pressure on the processor.

  • PIRATRIK

    Is this method good, performance wise?

    I think @hayesmaker example sounds better

    • http://hardwareacceleratedreality.com Joseph Clover

      Hey PIRATRIK,

      I believe this is better performance wise, yes. The reason it might seem easier to just remove any colour using PhotoShop or Gimp is because you don’t see what Flash does behind the scenes. I think Flash does a lot behind the scenes when there is transparency on the image. All we are doing is a simple for loop :)