I want do that when my player overlap an object so only the area overlapping is visible of other object. So i need a code for that.
Develop games in your browser. Powerful, performant & highly capable.
See "Blend modes" example in Construct.
Thanks