David81 Posted September 12, 2018 Share Posted September 12, 2018 Hello everyone, I have a project with Phaser and I'm stuck. I need your help. I have two layers (images) and I want to erase the first layer with the user's action (I do not want to destroy it). I have tried this with the masks but I do not know how to make the mask dynamically drawn by the player. I do not know if you understand me. I'm not good at English. Any clue how can I do this effect? I included an image. Link to comment Share on other sites More sharing options...
iKest Posted September 12, 2018 Share Posted September 12, 2018 use graphics object as mask. draw on it with .save() method Link to comment Share on other sites More sharing options...
prob Posted September 12, 2018 Share Posted September 12, 2018 Yes, this came up not too long ago, in regards to converting something done in Phaser 2 (here) to Phaser 3. Link to comment Share on other sites More sharing options...
samme Posted September 12, 2018 Share Posted September 12, 2018 I think you can use a Render Texture as a Bitmap Mask. Link to comment Share on other sites More sharing options...
David81 Posted September 13, 2018 Author Share Posted September 13, 2018 Thanks, I'm going to try all the options. Thank you very much for your help Link to comment Share on other sites More sharing options...
Recommended Posts