Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you clear all pen done by only one sprite?
- powerbot
-
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
-
1000+ posts
How do you clear all pen done by only one sprite?
You can't, clear, clears all pen lines and stamps.
- alekkelaalek
-
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
It would really help for pseudo 3d games
- footsocktoe
-
1000+ 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?
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
-
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.
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
-
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
-
49 posts
How do you clear all pen done by only one sprite?
This is why I do my pen with one sprite.
- deck26
-
1000+ posts
How do you clear all pen done by only 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. This is why I do my pen with one sprite.
The last few posts are necroposts.
Last edited by deck26 (Nov. 1, 2018 12:20:04)
- nukecat
-
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
-
5 posts
How do you clear all pen done by only one sprite?
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.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?
- Discussion Forums
- » Help with Scripts
-
» How do you clear all pen done by only one sprite?