This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-06-20 22:42:34

SeanCanoodle
Scratcher
Registered: 2008-06-20
Posts: 100+

Eraser tool?

So, I'm trying to make a game where you tunnel through dirt. I have the image of dirt stamp on the entire screen and use an empty background for digged out parts, is there any way erase the drawing to reveal the background? I have a feeling this is really obvious. Using a small sample of the background as a stamp is not really an option for this.

Offline

 

#2 2008-06-21 05:55:56

1pikachu1
Scratcher
Registered: 2007-12-23
Posts: 36

Re: Eraser tool?

Make it so:
when green_flag clicked
clear
set pen color to white
forever if key right arrow pressed and not touching color white
pen down
else
pen up

Last edited by 1pikachu1 (2008-06-21 05:56:20)

Offline

 

#3 2008-06-21 12:33:15

SeanCanoodle
Scratcher
Registered: 2008-06-20
Posts: 100+

Re: Eraser tool?

That was what I was thinking of doing except I abosolutley will not use white for the eraser, I want it to show the pattern I use for the background. So, thanks anyways for the help.

Offline

 

#4 2008-06-21 12:46:53

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Eraser tool?

You could use the "stamp" tool and make the sprite the pattern, though with the moving it won't look half good.

Offline

 

#5 2008-07-10 16:31:06

1pikachu1
Scratcher
Registered: 2007-12-23
Posts: 36

Re: Eraser tool?

then use whatever the background color is.

Offline

 

#6 2008-07-14 20:43:09

1pikachu1
Scratcher
Registered: 2007-12-23
Posts: 36

Re: Eraser tool?

new script:[blocks]
<when green flag clicked>
<set pen color to( whatever the background color is
<forever>
<if>
<key[right arrow ]pressed?>
<pen down>
<move(2)steps>
<else>
<pen up>[/blocks]

Offline

 

#7 2008-07-14 21:01:36

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: Eraser tool?

1pikachu1 wrote:

new script:[blocks]
<when green flag clicked>
<set pen color to( whatever the background color is
<forever>
<if>
<key[ right arrow ]pressed?>
<pen down>
<move( 2 )steps>
<else>
<pen up>[/blocks]

I think what he's saying is that the background has different colors. Either that or he's right. And I corrected some errors in your script.

Offline

 

#8 2008-07-16 22:24:39

SeanCanoodle
Scratcher
Registered: 2008-06-20
Posts: 100+

Re: Eraser tool?

Yes, the background has multiple colours. By using a sample of the background as the stamp it would make weird streaks and have a really odd effect. Maybe future versions of scratch will have an eraser? I'm suprised people posted on such an old thread too.

Offline

 

#9 2008-07-17 12:01:47

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Eraser tool?

SeanCanoodle wrote:

That was what I was thinking of doing except I abosolutley will not use white for the eraser, I want it to show the pattern I use for the background. So, thanks anyways for the help.

If there is a pattern in the background, here is an idea. I have no idea if it will work, but it might. Set the ghost effect of a sprite to 100 and have it stamp. I dunno if this works, I how so! I should test it out..


All your base are belong to us

Offline

 

#10 2008-07-17 12:20:29

Lanie
Scratcher
Registered: 2008-02-03
Posts: 1000+

Re: Eraser tool?

I think Cyclones idea might work

Offline

 

#11 2008-07-17 12:21:40

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Eraser tool?

Lanie wrote:

I think Cyclones idea might work

It might work cause it stamps what the sprite looks like, and since the sprite looks invisible, it will cover the pen marks but leave the background normal. Ima go test this out, brb.


All your base are belong to us

Offline

 

#12 2008-07-17 12:23:31

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Eraser tool?

Nope, it won't work. It leaves an image of the cat as though it were visible. Oh well.


All your base are belong to us

Offline

 

#13 2008-07-17 12:32:58

Lanie
Scratcher
Registered: 2008-02-03
Posts: 1000+

Re: Eraser tool?

o well,maybe ill try something

Offline

 

Board footer