Discuss Scratch

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

Last edited by Vaibhs11 (June 26, 2021 04:56:04)

bambang112481632
Scratcher
21 posts

I'm trying to delete parts of a sprite using code

what??
Vaibhs11
Scratcher
1000+ posts

I'm trying to delete parts of a sprite using code

bambang112481632 wrote:

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)
MasterofTheBrick
Scratcher
1000+ posts

I'm trying to delete parts of a sprite using code

Vaibhs11 wrote:

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

MasterofTheBrick wrote:

Woah that wasn't very nice…
Anyway I was trying to be as nice as possible.
failure

MasterofTheBrick wrote:

Anyway Vaibhs11 is trying to suggest using pen to erase your sprits

Vaibhs11 wrote:

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

Vaibhs11 wrote:

bambang112481632 wrote:

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?
i posted my unfinished pinball project, i'm not a beginner
MasterofTheBrick
Scratcher
1000+ posts

I'm trying to delete parts of a sprite using code

So do you understand the posts that were made??

bambang112481632 wrote:

i posted my unfinished pinball project, i'm not a beginner
Vaibhs11 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

MasterofTheBrick wrote:

So do you understand the posts that were made??

bambang112481632 wrote:

i posted my unfinished pinball project, i'm not a beginner
Vaibhs11 already clarified that he was trying to be “as nice as possible”, so please don't start an argument here.
sorry, i'm kinda sensitive about that
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

Powered by DjangoBB