Author Topic: Erase parts of image  (Read 878 times)

eduardonunesp

  • Member
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
    • Blog Dream Escape.
Erase parts of image
« on: Wed, Jan 25, 2012 »
What is the best way to erasing progressively some parts of the FlxSprite and revealing what is behind, i just tried the functions setPixels to transform FlxSprite.pixels in alpha pixels, and i tried to draw a shape over the FlxSprite with FlxSprite.pixels.draw(shape, null, null, "erase"), but without success.

I just need to study more AS3, i know :P. Thanks

Foxtacy

  • Aspiring Indie Game Developer, Prototype Musician, Lame Pixel Artist
  • Member
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
    • Need songs? :3
Re: Erase parts of image
« Reply #1 on: Wed, Jan 25, 2012 »
There's a VERY VERY easy way to do it with photonstorm's Flixel Power Tools.

Check it out! ^^
Waiting is wasting

eduardonunesp

  • Member
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
    • Blog Dream Escape.
Re: Erase parts of image
« Reply #2 on: Wed, Jan 25, 2012 »
But the alphamask cannot move, so i can simulate the effect of revealing ...