Discuss Scratch

powerbot
Scratcher
12 posts

How do you clear all pen done by only one sprite?

Can anyone tell me how to clear the pen a sprite has done without clearing the pen from other sprites?
drmcw
Scratcher
1000+ posts

How do you clear all pen done by only one sprite?

You can't, clear, clears all pen lines and stamps.
alekkelaalek
Scratcher
7 posts

How do you clear all pen done by only one sprite?

They should update scratch so it does
It would really help for pseudo 3d games
footsocktoe
Scratcher
1000+ posts

How do you clear all pen done by only one sprite?

powerbot wrote:

Can anyone tell me how to clear the pen a sprite has done without clearing the pen from other sprites?

Yes. You have to change how you think about the pen. Let's say you have three sprites and each one has a pen drawing script. You draw the screen…

Draw sprite 1's script
Draw sprite 2's script
Draw sprite 3's script

It's important that the drawing scripts be in nonrefresh define blocks.

Now let's say you want to erase Sprite 2's drawing. You draw the screen…

Clear
Draw sprite 1's script
Draw sprite 3's script

Do you understand how that works?
AgentStealthGuy
Scratcher
2 posts

How do you clear all pen done by only one sprite?

I wish it was a thing
I have been working on the eight queens puzzle algorithm and was thinking about a way for the queens to use pens to detect one another, but, I would need individual clearing for sprites pens.
Penguin5664
Scratcher
100+ posts

How do you clear all pen done by only one sprite?

Clearing all and redrawing all pen strokes but the objects which pen strokes you want to clear, may be useful?
Cutie_Poochi
Scratcher
49 posts

How do you clear all pen done by only one sprite?

This is why I do my pen with one sprite.
deck26
Scratcher
1000+ posts

How do you clear all pen done by only one sprite?

Cutie_Poochi wrote:

This is why I do my pen with one sprite.
Not sure that is of any relevance. All pen is deleted by clear whether you use one sprite or more than one. To keep specific pen marks would still mean redrawing the bits you want whether you're working with one sprite or not.

The last few posts are necroposts.

Last edited by deck26 (Nov. 1, 2018 12:20:04)

nukecat
Scratcher
1 post

How do you clear all pen done by only one sprite?

Hi scratch needs an update for the pen. You know what i mean clear the pen a sprite has done without clearing the pen from other sprites. So try to get scratch to add this ok it would be nice.
Sporlings
Scratcher
5 posts

How do you clear all pen done by only one sprite?

footsocktoe wrote:

powerbot wrote:

Can anyone tell me how to clear the pen a sprite has done without clearing the pen from other sprites?

Yes. You have to change how you think about the pen. Let's say you have three sprites and each one has a pen drawing script. You draw the screen…

Draw sprite 1's script
Draw sprite 2's script
Draw sprite 3's script

It's important that the drawing scripts be in nonrefresh define blocks.

Now let's say you want to erase Sprite 2's drawing. You draw the screen…

Clear
Draw sprite 1's script
Draw sprite 3's script

Do you understand how that works?
That's a good idea but really hard to do in a drawing game because you have to add what the player did exactly they should really add something that erases everything only from one sprite.

Powered by DjangoBB