Discuss Scratch

PullJosh
Scratcher
1000+ posts

Pen Eraser

After reading (and answering) this Stackoverflow question, it seemed like adding a “pen eraser” would be a nice idea (especially for 3.0). I'm not sure how difficult this is technically, but it would certainly be a nice feature to have.
WolfCat67
Scratcher
1000+ posts

Pen Eraser

Actually, it could probably be implemented like this…
set pen color to [ ]
…but with the white with the red diagonal line we all know from the Sprite Editor.

VideoGamerCanInvent
Scratcher
1000+ posts

Pen Eraser

WolfCat67 wrote:

Actually, it could probably be implemented like this…
set pen color to [ ]
…but with the white with the red diagonal line we all know from the Sprite Editor.
Well, if you were trying to erase something on a backdrop, you are also kind of erasing the backdrop

Support.

woah, haven't been on here in a while
WaffleChurro
Scratcher
100+ posts

Pen Eraser

Siknakaliux wrote:

But what about ctrl + z?
I think @PullJosh wants the ability to erase pen once it is drawn on the stage, e.g. A pen mouse trail, or something like that.

Support

Last edited by WaffleChurro (Jan. 27, 2017 04:55:20)


Lets ban Minimods together.
miniepicness
Scratcher
1000+ posts

Pen Eraser

WaffleChurro wrote:

Siknakaliux wrote:

But what about ctrl + z?
I think @PullJosh wants the ability to erase pen once it is drawn on the stage, e.g. A pen mouse trail, or something like that.

Support
stickfiregames
Scratcher
1000+ posts

Pen Eraser

Duplicate of this. It's been merged now.

WolfCat67 wrote:

Actually, it could probably be implemented like this…
set pen color to [ ]
…but with the white with the red diagonal line we all know from the Sprite Editor.
Transparent pen already exists (although you can't get it with the colour picker), and this might be confused with that or cause some technical problems.

I think the best way would be
set pen mode to [pen v] :: pen
set pen mode to [eraser v] :: pen
which would also allow for more types of pen if they are needed in the future.

Last edited by stickfiregames (Feb. 24, 2017 17:46:44)











If you can read this, my signature cubeupload has been eaten by an evil kumquat!




or you just used Inspect Element, you hacker

;
humantorch01
Scratcher
85 posts

Pen Eraser

I think that this is a great idea! But there is a work around. For instance: the snake game can have everything clear for every frame. you just have to keep a list of where the snake is(and make a script that updates it). That will also make it rounded on both ends.
forever
clear
in a custom block with run without screen refresh vvv
set [count v] to [0]
repeat (length of [x or y snake v] :: list)
change [count v] by [1]
go to x: (item (count) of [x snake v] :: list) y: (item (count) of [y snake v] :: list)
pen down
end
pen up

end
I give semi-support. For the fact that most pen games just keep track of everything and redraws it every frame. But erasing will make things easier for new scratchers.

Codebeginner459
Scratcher
100+ posts

Pen Eraser

Birdlegs wrote:

There must be a reason we don't have this, but there should be an eraser for the pen. Maybe

eraser down ::pen

eraser up ::pen

I though of this because someone in the Help With Scripts wanted to know how to erase snake tails, and I told him to record X and Y in a list and come by with an eraser and cover it with the backdrop color… But what if the backdrop is different colors? A workaround I can picture would still distort the backdrop. I imagine this would simply use a function similar to “clear,” but focus only on a small portion of the screen.

Strong support Pen Eraser. its a basic feature.

signature
I Want CODING EXERCISE/ CODING PUZZLES/ CODING TASKS on Scratch.
Studio:
Scratch practice and exercise , Scratch Excercise ONLY (Scratch Coding Exercise) Discussions: Suggestion: Make a series of coding challenges Collab: Coding exercise for beginner Scratchers
Please make this come true. Many thanks in advance.
PS: Scratch within Scratch (Scratch emulator): https://scratch.mit.edu/discuss/topic/453042/
diduganga
Scratcher
58 posts

Pen Eraser

Total Support.

[ eraser v] down::pen

[ eraser v] up::pen
The reason is obvious, what the OP said. We need it, if we need to erase a certain part of the pen, without destroying the background.
There is a quite-hard workaround.
  • You have to add the current color of the background and then add that to a list and add all the x coordinates and y coordinates of a certain position to a list and then if the erase mode is on, touching mouse-pointer and mouse down, pen down and set pen color to the current color of the x and y position
That was one quite-hard workaround. I've never tried it, but I think that would work.
  • We can do the same with the clones and then add
    When I start as clone, if touching mouse-pointer and mouse-down, then delete this clone
thank you PGBFLITE6373 for reminding me to tell the reason

Last edited by diduganga (May 1, 2021 06:33:42)

PGBFLITE6373
Scratcher
1000+ posts

Pen Eraser

diduganga wrote:

Total Support.

[ eraser v] down::pen

[ eraser v] up::pen
please say why you support

—————————————————————————————————————————————————————————————————
How to make siggie

Powered by DjangoBB