Discuss Scratch

Greatguy123
Scratcher
500+ posts

Clear a certain sprite's pen

My suggestion would involve an update to a block. I know that that's not likely to happen, but here's my suggestion anyway:

An update to the clear block so that it would look like this:
clear [all v] // category=pen
The dropdown options would be: all (then a dark line), then all of your sprites. If you were in the stage, the only option would be all. This block would allow you to clear specific things. If you chose all, it would do the same thing it does now. However, if you chose a sprite, it would only clear whatever that specific sprite has drawn.

The benefit? Oftentimes I find myself having to coordinate drawing and clearing between sprites. I might try to draw something with one sprite, but find that another sprite, which is refreshing a drawing, keeps clearing it. With this block, I could have the refreshing sprite only clearing what it is drawing and have my other sprites drawing whatever they want. Of course, you would always have the option of clearing everything.

There you go. Support it or don't.

Last edited by Greatguy123 (May 8, 2015 16:34:03)


The evil if block is hungry! >:-D
TheHockeyist
Scratcher
1000+ posts

Clear a certain sprite's pen

Support if possible.


Blank1234
Scratcher
500+ posts

Clear a certain sprite's pen

IT WOULD CREATE INTENSE LAG KEEPING TRACT OF ALL THE PEN ACTIONS OF A SPRITE, SO NO SUPPORT

Did you know that “kaj” means “and” in Esperanto?


















Totally not for SEO:
https://scratch.mit.edu/projects/85467306/
https://scratch.mit.edu/projects/83099266/
https://scratch.mit.edu/projects/81628056/
https://scratch.mit.edu/projects/81562288/
https://scratch.mit.edu/projects/81462110/
https://scratch.mit.edu/projects/81436112/
https://scratch.mit.edu/projects/78896920/
https://scratch.mit.edu/projects/78863998/
https://scratch.mit.edu/projects/76577776/
https://scratch.mit.edu/projects/76459270/
https://scratch.mit.edu/projects/74797364/
https://scratch.mit.edu/projects/74085188/
https://scratch.mit.edu/projects/73150274/
https://scratch.mit.edu/projects/73112658/
https://scratch.mit.edu/projects/72484040/
https://scratch.mit.edu/projects/72737486/
https://scratch.mit.edu/projects/72410420/
https://scratch.mit.edu/projects/72378152/
https://scratch.mit.edu/projects/71910314/
https://scratch.mit.edu/projects/67826618/
https://scratch.mit.edu/projects/67882676/
https://scratch.mit.edu/projects/66909070/
https://scratch.mit.edu/projects/66925858/
https://scratch.mit.edu/projects/66420350/
https://scratch.mit.edu/projects/66062314/
https://scratch.mit.edu/projects/65564542/
https://scratch.mit.edu/projects/64828196/
https://scratch.mit.edu/projects/64286296/
https://scratch.mit.edu/projects/64283600/
https://scratch.mit.edu/projects/62386850/
https://scratch.mit.edu/projects/63907584/
https://scratch.mit.edu/projects/62785306/
https://scratch.mit.edu/projects/63767660/
https://scratch.mit.edu/projects/62676562/
https://scratch.mit.edu/projects/61948978/
https://scratch.mit.edu/projects/62521426/
https://scratch.mit.edu/projects/61074988/
https://scratch.mit.edu/projects/11658256/
https://scratch.mit.edu/projects/60640274/
TheHockeyist
Scratcher
1000+ posts

Clear a certain sprite's pen

cwrivera99 wrote:

Blank1234 wrote:

IT WOULD CREATE INTENSE LAG KEEPING TRACT OF ALL THE PEN ACTIONS OF A SPRITE, SO NO SUPPORT
^^^

Maybe a limit on sprites with pens then… 301? 500?


MathlyCat
Scratcher
1000+ posts

Clear a certain sprite's pen

Blank1234 wrote:

IT WOULD CREATE INTENSE LAG KEEPING TRACT OF ALL THE PEN ACTIONS OF A SPRITE, SO NO SUPPORT
And how would you prove this? I can't believe you if there is no evidence.

I semi-support!

Think before you act.
Actions speek louder than words.

hi there fella
Greatguy123
Scratcher
500+ posts

Clear a certain sprite's pen

Um…why? I have no proof against you, but I don't see why it would be that bad. Each sprite could just keep track of its own drawings.

The evil if block is hungry! >:-D
Greatguy123
Scratcher
500+ posts

Clear a certain sprite's pen

Bump. Someone please explain why this would create lag.

The evil if block is hungry! >:-D
Aboot4
Scratcher
100+ posts

Clear a certain sprite's pen

Alright, something else that's been bugging me that Scratch doesn't have -
clear pen drawn in [all sprites v]::pen 
clear pen drawn in [Sprite1 v]::pen
clear pen drawn in [this sprite v]::pen
It'd be very useful for pen games and projects, such as platformers and loaders. Please, edit the “clear” block, or make this a new block!

Supporters:
- Cream_E_Cookie
- Zarlog
- Prinseskat
- BookOwl
Semi-Supporters:
- monstermash3
- CatsUnited
- stickfiregames
- DaSpudLord
- CGRises
- Gaza101

Last edited by Aboot4 (July 25, 2015 21:04:10)


when green flag clicked
forever :: sensing
Dream :: looks
Create :: control
Innovate :: pen
Cream_E_Cookie
Scratcher
1000+ posts

Clear a certain sprite's pen

support

















Prinseskat
Scratcher
1000+ posts

Clear a certain sprite's pen

Support! There could also be
clear [what I drew v]::pen
//or
clear pen drawn in [this sprite v]::pen
This would work with clones, which could be very useful.

haha funny kumquat meme
stickfiregames
Scratcher
1000+ posts

Clear a certain sprite's pen

Semi-support, it might be useful but it would require Scratch to track every sprite's pen layer separately, which might slow it down No support.

Last edited by stickfiregames (June 22, 2017 20:28:47)











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




or you just used Inspect Element, you hacker

;
monstermash3
Scratcher
1000+ posts

Clear a certain sprite's pen

Indifferent. When would this be used?

(Swallowed by an evil kumquat who was just taking a walk in the neighborhood of evil kumquats when they saw a garage sale where they bought a plate which they used to eat but they discovered that it leaked and they went to get their money back but the sale was over so they went in the house but the door was locked so they got their key but it didn't fit so they went home to use the key on the right door which was their own door and then they decided to swallow a signature for no reason.)
Aboot4
Scratcher
100+ posts

Clear a certain sprite's pen

monstermash3 wrote:

Indifferent. When would this be used?
I already said. “It'd be very useful for pen games and projects, such as platformers and loaders. ” It'd also be used even more for pen design projects.

when green flag clicked
forever :: sensing
Dream :: looks
Create :: control
Innovate :: pen
monstermash3
Scratcher
1000+ posts

Clear a certain sprite's pen

Aboot4 wrote:

monstermash3 wrote:

Indifferent. When would this be used?
I already said. “It'd be very useful for pen games and projects, such as platformers and loaders. ” It'd also be used even more for pen design projects.
Whoops! Didn't read that part. Still indifferent (I would need an example to be sure) but I would support editing the clear block more than making it a new block.

(Swallowed by an evil kumquat who was just taking a walk in the neighborhood of evil kumquats when they saw a garage sale where they bought a plate which they used to eat but they discovered that it leaked and they went to get their money back but the sale was over so they went in the house but the door was locked so they got their key but it didn't fit so they went home to use the key on the right door which was their own door and then they decided to swallow a signature for no reason.)
CatsUnited
Scratcher
1000+ posts

Clear a certain sprite's pen

Semi-support, could slow down pen projects, but ot would be cool to have.

I AM SELLING CRAM | smug hat kid dance | fetch | Sans Gaming
Galar Dex - 131/400 (32.75%)
BookOwl
Scratcher
1000+ posts

Clear a certain sprite's pen

SUPPORT!
And here is a suggestion for how to keep it from lagging to much: if only the clear all block is used, it would work like it does now, only using layers if a clear the pen of a certain sprite is used.

Last edited by BookOwl (July 25, 2015 13:35:34)


who needs signatures
Zro716
Scratcher
1000+ posts

Clear a certain sprite's pen

yeah, no I don't think this idea would work the way you think without serious changes to the editor and potential project-breaking problems. it is possible to have each sprite draw on its own “layer” (or really just another transparent canvas overlapping the stage) and print each layer before drawing the sprites, then there won't be a problem with tracking pen trails. however, that means the editor has to take up even more space with each sprite/clone (think of 300 clones with 480x360 bitmaps each, that's a whole lot of more space to take up as well as sluggish overlapping with the aforementioned process).

but if you favor the original idea of tracking pen strokes per sprite and clearing out those made by a certain sprite, then I'd have to give a stern “no support”. my reason for this is it would break many intense pen projects due to high memory consumption, accumulated by recording not only positional changes but every other change to ensure the same sequence of strokes occur, and this would lead to memory leaks and crashing. with the right coding techniques, pen recording isn't necessary and thus every problem presented here is avoided

As a long time Scratcher, I have found new meaning to the name “Scratch”: for me, it means to “scratch that itch”, to come back again and again to realize new ideas in this toy language, even when I'm capable of creating my projects in real programming languages years later. It's a friend that helped me to pursue programming and get me to enjoy its fruit. I'm certain many others who have walked this path as well have grown fond of its importance in their life.
Deerleg
Scratcher
1000+ posts

Clear a certain sprite's pen

Wait - is this a block for clearing pen drawn by separate sprites or a block for clearing pen on sprites? Because the latter isn't even possible to begin with.

And you can also “erase” by turning the pen whatever color the background is (provided the background color is solid) and then drawing it over whatever you want to clear. I can see how the block would be useful (like for multicolored backgrounds) but like @Zro716 said, it would be difficult to implement.


Aboot4
Scratcher
100+ posts

Clear a certain sprite's pen

Deerleg wrote:

Wait - is this a block for clearing pen drawn by separate sprites or a block for clearing pen on sprites? Because the latter isn't even possible to begin with.

And you can also “erase” by turning the pen whatever color the background is (provided the background color is solid) and then drawing it over whatever you want to clear. I can see how the block would be useful (like for multicolored backgrounds) but like @Zro716 said, it would be difficult to implement.
Clearing pen drawn by separate sprites. If I have a script in Sprite1 that says ‘go to x:0, y:0, pen down, change x by 10’, then have a script in sprite2 that says ‘go to x:0, y:0, pen down, change x by -10, clear pen drawn in Sprite1’, what would happen is both sprites would draw with pen, but the pen that was drawn by Sprite1 would be cleared. Understand?

If it was the other option you asked about, I would have just suggested
(pen drawn by [Sprite1 v] touching [Sprite2 v]::pen)
or
(pen drawn by [Sprite1 v] touching pen drawn [Sprite2 v]::pen)
But that's not really what I'm asking for (Right now. ;D)

when green flag clicked
forever :: sensing
Dream :: looks
Create :: control
Innovate :: pen

Powered by DjangoBB

Standard | Mobile