# Deleting Pixels to reveal background / transparency

**URL:** <https://forum.kirupa.com/t/deleting-pixels-to-reveal-background-transparency/317950>\
**Category:** flash\
**Created:** [January 6, 2011, 5:30pm UTC](https://forum.kirupa.com/t/deleting-pixels-to-reveal-background-transparency/317950 "2011-01-06T17:30:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jany](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jany](https://forum.kirupa.com/u/jany)\
**Post date:** [January 6, 2011, 5:30pm UTC](https://forum.kirupa.com/t/deleting-pixels-to-reveal-background-transparency/317950/1 "2011-01-06T17:30:30Z")

</div>

This has been bugging me for a little, and some of the examples I have tried to find throw me in loops and they have been wrong.

If you look at this game - [http://www.kongregate.com/games/kChamp/shellshock-live](http://www.kongregate.com/games/kChamp/shellshock-live)

Or if you have ever played “Scorched Earth” you will see that when some part of the terrain is destroyed, it punches out the pixels perfectly when a shot is fired into the ground, to reveal the picture behind the main picture with the terrain. How is this done? I have literally tried everything I know and can’t seem to get it down.

All help is greatly appreciated as always, thanks! :flower:
