Thank you keepee! But that solution is kind of too complicated for me yet, since I'm a beginner.
I decided just to make the sprite fades out after been touched by the eraser. It is not the most beautiful solution, but it works in my project.
Thank you again for the attention!