Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I'm trying to delete parts of a sprite using code
- bambang112481632
-
Scratcher
21 posts
I'm trying to delete parts of a sprite using code
so, what I'm trying to do is have a game where you're a little eraser guy, and his goal is to delete the entire world, but you have to slowly upgrade your tip to erase thicker parts of the world, so I need a script to delete parts of a sprite, but not all sprites within that location
- Vaibhs11
-
Scratcher
1000+ posts
I'm trying to delete parts of a sprite using code
Erasing smoothly is almost impossible, because it needs pen.
but just few parts of an object isn't too hard. If it isn't a scrolling anything.
All you need is a list with details of all parts of an like costume, x pos, y pos and other stuff. And a sprite with all of the costumes of the parts to clone.
The scripts are too big. So, sorry
but just few parts of an object isn't too hard. If it isn't a scrolling anything.
All you need is a list with details of all parts of an like costume, x pos, y pos and other stuff. And a sprite with all of the costumes of the parts to clone.
The scripts are too big. So, sorry

Last edited by Vaibhs11 (June 26, 2021 04:56:04)
- Vaibhs11
-
Scratcher
1000+ posts
I'm trying to delete parts of a sprite using code
what??Oh, I saw your projects and I think you're a little too beginner to understand clones.
Or if it isn't the case, what's your doubt?
- bambang112481632
-
Scratcher
21 posts
I'm trying to delete parts of a sprite using code
bruh i've been using scratch for 2 years, i'm not a beginner, i just make simple projects and my more complex projects, i don't post
- Oumuamua
-
Scratcher
1000+ posts
I'm trying to delete parts of a sprite using code
Hi, maybe you want to create a large bunch of costumes with small pieces(clones) that you can go deleting at your convenience.
Or stamp it on Stage and go erasing, actually painting over with a solid color(same color of background)
Or stamp it on Stage and go erasing, actually painting over with a solid color(same color of background)
- MasterofTheBrick
-
Scratcher
1000+ posts
I'm trying to delete parts of a sprite using code
Oh, I saw your projects and I think you're a little too beginner to understand clones.
Woah that wasn't very nice…
Anyway Vaibhs11 is trying to suggest using pen to erase your sprits, which isn't possible because the pen effects will only show up on the backdrop and not on the sprites. So the only way is to use a clone trail to act as an ‘eraser’, but even then the 300 clone limit would be reached relatively quickly. It would be better to have pre-set costumes which you can cycle through to simulate them being erased.
- Vaibhs11
-
Scratcher
1000+ posts
I'm trying to delete parts of a sprite using code
Woah that wasn't very nice…Anyway I was trying to be as nice as possible.
failure
Anyway Vaibhs11 is trying to suggest using pen to erase your sprits
Erasing smoothly is almost impossible, because it needs pen.I was suggesting clones if it's not scrolling.
- bambang112481632
-
Scratcher
21 posts
I'm trying to delete parts of a sprite using code
i posted my unfinished pinball project, i'm not a beginnerwhat??Oh, I saw your projects and I think you're a little too beginner to understand clones.
Or if it isn't the case, what's your doubt?
- MasterofTheBrick
-
Scratcher
1000+ posts
I'm trying to delete parts of a sprite using code
So do you understand the posts that were made??
i posted my unfinished pinball project, i'm not a beginnerVaibhs11 already clarified that he was trying to be “as nice as possible”, so please don't start an argument here.
- bambang112481632
-
Scratcher
21 posts
I'm trying to delete parts of a sprite using code
So do you understand the posts that were made??sorry, i'm kinda sensitive about thati posted my unfinished pinball project, i'm not a beginnerVaibhs11 already clarified that he was trying to be “as nice as possible”, so please don't start an argument here.
- MasterofTheBrick
-
Scratcher
1000+ posts
I'm trying to delete parts of a sprite using code
It's alright. However this thread has gone off-topic, do you still need help or clarification for whatever posts have been made so far?
Last edited by MasterofTheBrick (June 26, 2021 07:24:56)
- bambang112481632
-
Scratcher
21 posts
I'm trying to delete parts of a sprite using code
i think i'm going to do this idea another day, maybe when i use unity or other game engines
- Discussion Forums
- » Help with Scripts
-
» I'm trying to delete parts of a sprite using code