Put sprite1 on layer1
Put sprite2 on layer2. In layer2 properties set "Force own texture=Yes".
Add mask sprite (for example big black rectangle) on layer2, above sprite1. Set "Blend mode=Destination out" on mask sprite.
Now if you move the mask sprite to overlap sprit2, sprite2 will become invisible, revealing sprite1.