Hi, I decided to make a graphics editor through the Canvas plug-in on Construct 2, but there was such a problem, how to do an eraser? For example, I selected an eraser object and dragged it along the canvas, and a certain area was cleared.
Maybe just make the eraser colour the same as the background colour? So instead of just taking away the colour, it kind of "repaints" it to match the canvas.
Develop games in your browser. Powerful, performant & highly capable.
There was such an idea, but the fact is that I want to make it so that the canvas was transparent
how is the paint on the canvas? is it one big sprite or is it just pixels or color? if it is just pixels, may be able to take the eraser sprite and "is overlaying paint pixel -> delete paint pixel"