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
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
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
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
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..
Offline
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.
Offline
Nope, it won't work. It leaves an image of the cat as though it were visible. Oh well.
Offline