Making part of sprite transparent at runtime

43318-oaktree-copy.png

I want to allow the player to make part of sprite transparent thus creating effect shown on the image above. How can I achieve such effect? Thanks in advance.

check the comment after the marked answer here: