Discuss Scratch

Victoriq
Scratcher
13 posts

How to make eraser!?

I am making a scratch project about a drawing app.
Everything is ready except the eraser, which I do not know how you can program it to be an eraser.

https://scratch.mit.edu/projects/97324403/

Help would be great!
Thanks!

Victoriq
deck26
Scratcher
1000+ posts

How to make eraser!?

The normal method is to set the pen to the colour of the background and draw with that colour. Otherwise, if you're using the pen, your only alternative is to store and redraw without the bits you don't want to draw again.
EPICFox207
Scratcher
3 posts

How to make eraser!?

I am having the same problems on my drawing game. (You can draw!) https://scratch.mit.edu/projects/201528752/#player
Vicream_Creator
Scratcher
100+ posts

How to make eraser!?

As deck said guys, better use a white, black or any UNICOLOUR background. Then, for the eraser do smh like

set pen color to [background color]

And that will make a fake eraser. Totally legit looking
deck26
Scratcher
1000+ posts

How to make eraser!?

But please start your own new topic next time rather than necroposting.
ParadoxScratching
Scratcher
100+ posts

How to make eraser!?

To make thing simple just set your pen colour to the background colour.
EPICFox207
Scratcher
3 posts

How to make eraser!?

Thank everyone! I'm new to posts so I might need some help.
EPICFox207
Scratcher
3 posts

How to make eraser!?

Vicream_Creator, I can't get the text to go in that block. It only takes numbers.
deck26
Scratcher
1000+ posts

How to make eraser!?

EPICFox207 wrote:

Vicream_Creator, I can't get the text to go in that block. It only takes numbers.
I think they meant you to choose the background colour.
Scratch---Cat
Scratcher
1000+ posts

How to make eraser!?

Use a color block, and put a hexadecimal in it, like 0xffffffff
join Block recommended



Evil Kumquat :: variables reporter
holirocks
Scratcher
66 posts

How to make eraser!?

Victoriq wrote:

I am making a scratch project about a drawing app.
Everything is ready except the eraser, which I do not know how you can program it to be an eraser.

https://scratch.mit.edu/projects/97324403/

Help would be great!
Thanks!

Victoriq

Use a pen tool of the same coloured background! Works like a charm!
chipnborg
Scratcher
14 posts

How to make eraser!?

IDK but i guess this…


set pen color to (BG color)

Last edited by chipnborg (May 6, 2022 12:07:31)

RED-001
Scratcher
500+ posts

How to make eraser!?

Just set the color to white when the eraser is selected.
Tunde123
Scratcher
1000+ posts

How to make eraser!?

chipnborg wrote:

IDK but i guess this…


set pen color to (BG color)
Please do not necropost.

Powered by DjangoBB