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
Well, if you were trying to erase something on a backdrop, you are also kind of erasing the backdrop 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.
Support.
woah, haven't been on here in a while
- WaffleChurro
- Scratcher
100+ posts
Pen Eraser
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. But what about ctrl + z?
Support
Last edited by WaffleChurro (Jan. 27, 2017 04:55:20)
Lets ban Minimods together.
- miniepicness
- Scratcher
1000+ posts
Pen Eraser
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. But what about ctrl + z?
Support
—————————–
-Click here to go to my profile —-Invited to scratch by AmazingProgrammer123
-Some Old Games: Racing Cats,Hungry Cat, Trapped, Mini-nation, ᴍAdvεnturᴇ﹗ and more!
- My“Any-Game”studio- All of My Projects/Games -My first project -my 200th project - handimation old shop:ACM-PICSHOP
click here for all my posts search the forums my first post :) my first thread/topic | click here
this signature is old⁽¹⁾
uV3b51yWZStHBjA8Lw7k
- stickfiregames
- Scratcher
1000+ posts
Pen Eraser
Duplicate of this. It's been merged now.
I think the best way would be
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. 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.
I think the best way would be
set pen mode to [pen v] :: penwhich would also allow for more types of pen if they are needed in the future.
set pen mode to [eraser v] :: pen
Last edited by stickfiregames (Feb. 24, 2017 17:46:44)
- 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.
foreverI 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.
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
- Codebeginner459
- Scratcher
100+ posts
Pen Eraser
There must be a reason we don't have this, but there should be an eraser for the pen. Maybeeraser 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.
There is a quite-hard workaround.
[ eraser v] down::penThe 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.
[ eraser v] up::pen
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
- 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
Last edited by diduganga (May 1, 2021 06:33:42)
- PGBFLITE6373
- Scratcher
1000+ posts
Pen Eraser
please say why you support Total Support.[ eraser v] down::pen
[ eraser v] up::pen
—————————————————————————————————————————————————————————————————
How to make siggie