Discuss Scratch

monkeytrooper
Scratcher
1000+ posts

How do you delete a previous stamp?

All in the title
P444
Scratcher
500+ posts

How do you delete a previous stamp?

clear
daCypher
Scratcher
25 posts

How do you delete a previous stamp?

You can only delete all stamps of all sprites with
clear

There's no way of deleting single stamps. If you want to do that, work with clones instead. Create a variable “Clone ID” for that particular sprite (not for all) and a variable named “delete Clone ID” for all sprites, then do this:
changeClone IDby1createcloneofmyself this will create a new clone with it's own Clone IDwhenIreceivedelete cloneIfdeleteCloneID=CloneIDthendeletethisclone

You can then delete any clone by setting the “delete Clone ID” to the clone you want to delete, and then broadcasting “delete clone”. This will even work from other sprites.
setdelete Clone IDto5broadcastdelete clone
P444
Scratcher
500+ posts

How do you delete a previous stamp?

daCypher wrote:

You can only delete all stamps of all sprites with
clear

There's no way of deleting single stamps. If you want to do that, work with clones instead. Create a variable “Clone ID” for that particular sprite (not for all) and a variable named “delete Clone ID” for all sprites, then do this:
changeClone IDby1createcloneofmyself this will create a new clone with it's own Clone IDwhenIreceivedelete cloneIfdeleteCloneID=CloneIDthendeletethisclone

You can then delete any clone by setting the “delete Clone ID” to the clone you want to delete, and then broadcasting “delete clone”. This will even work from other sprites.
setdelete Clone IDto5broadcastdelete clone
Why clones though? You can use a list with costume numbers
daCypher
Scratcher
25 posts

How do you delete a previous stamp?

I can't figure out, how costume numbers would help. For example, if you want to draw the keys of a phone, you can draw a costume which looks like a phone key and stamp it 10 times, so it's visible on the screen
whenclickedgotox:-50y:75repeat3repeat3stampchangexby50setxto-50changeyby-50gotox:0y:-75stamp

If you then wanted to delete single stamps, it won't work, you can only delete all of them with
clear

By using clones you could delete single keys.
whenclickedgotox:-50y:75setClone IDto1repeat3repeat3createcloneofmyselfchangeClone IDby1changexby50setxto-50changeyby-50gotox:0y:-75setClone IDto0createcloneofmyself

If you wanted to delete button no. 5, you could do it like this (assuming you would also copy the “When delete clone received” script from above):
setdelete Clone IDto5broadcastdelete clone
P444
Scratcher
500+ posts

How do you delete a previous stamp?

You can. Keep all costume numbers in a list. When wanting to delete a specific stamp, delete the costume number from list and rerender from list. I am just saying that it is possible with just the pen blocks without clones.
daCypher
Scratcher
25 posts

How do you delete a previous stamp?

Now i get it. Yes if you clear and then rerender, you can do it with stamps. You only need to save the position of each stamp.
deck26
Scratcher
1000+ posts

How do you delete a previous stamp?

As long as stamped images don't overlap and the backdrop is a plain colour you can also stamp a plain costume to make the old stamped item disappear. I've used this for card games and it works well.
P444
Scratcher
500+ posts

How do you delete a previous stamp?

deck26 wrote:

As long as stamped images don't overlap and the backdrop is a plain colour you can also stamp a plain costume to make the old stamped item disappear. I've used this for card games and it works well.
Yep, preferred if you are using pen to write text or other drawings so it will be faster.
footsocktoe
Scratcher
1000+ posts

How do you delete a previous stamp?

monkeytrooper wrote:

All in the title

When working with stamps and the pen, you have to think of the entire screen as a stamp.

Since you can draw instantly with the pen and stamps, you can achieve the appearance of deleting single stamps with this flow…

Redraw screen
Wait
Clear
Redraw screen with one stamp deleted
Wait
Clear
Redraw screen with any changes you want to make
Wait
Clear
Redraw screen
.
.

And no, there will be no blank screens or anything. Scratch can draw with the pen lightning fast (put it in a nonrefresh block)
monkeytrooper
Scratcher
1000+ posts

How do you delete a previous stamp?

deck26 wrote:

As long as stamped images don't overlap and the backdrop is a plain colour you can also stamp a plain costume to make the old stamped item disappear. I've used this for card games and it works well.
Thank you that is just what I need

MT
DaBestOfDaBest11
Scratcher
2 posts

How do you delete a previous stamp?

.

Last edited by DaBestOfDaBest11 (May 4, 2019 21:25:49)

codeman1044
Scratcher
1000+ posts

How do you delete a previous stamp?

DaBestOfDaBest11 wrote:

.
Please don't necropost. This topic is old and answered, and brings it back to the front page of the forums, which can annoy some people. Next time, please create your own topic.
-MemeMan_-
Scratcher
16 posts

How do you delete a previous stamp?

daCypher wrote:

I can't figure out, how costume numbers would help. For example, if you want to draw the keys of a phone, you can draw a costume which looks like a phone key and stamp it 10 times, so it's visible on the screen
whenclickedgotox:-50y:75repeat3repeat3stampchangexby50setxto-50changeyby-50gotox:0y:-75stamp

If you then wanted to delete single stamps, it won't work, you can only delete all of them with
clear

By using clones you could delete single keys.
whenclickedgotox:-50y:75setClone IDto1repeat3repeat3createcloneofmyselfchangeClone IDby1changexby50setxto-50changeyby-50gotox:0y:-75setClone IDto0createcloneofmyself

If you wanted to delete button no. 5, you could do it like this (assuming you would also copy the “When delete clone received” script from above):
setdelete Clone IDto5broadcastdelete clone

how exactly do i get the script to work
-MemeMan_-
Scratcher
16 posts

How do you delete a previous stamp?

whenclickedforeverif(oof)=50thenmove100steps

Last edited by -MemeMan_- (Nov. 2, 2020 18:12:05)

drawthekid
Scratcher
14 posts

How do you delete a previous stamp?

I might do some testing so if I find something I can do i'll share on this discussion.
deck26
Scratcher
1000+ posts

How do you delete a previous stamp?

drawthekid wrote:

I might do some testing so if I find something I can do i'll share on this discussion.
Please don't - this topic is old and has already been answered. Any newer questions at the end of the topic are better moved to new topics.
drawthekid
Scratcher
14 posts

How do you delete a previous stamp?

Ok! Deck26 I understand.
WeaselFurr
Scratcher
3 posts

How do you delete a previous stamp?

I'm having the same problem with stamps.
GalakC
Scratcher
500+ posts

How do you delete a previous stamp?

theres not really any way other than using pen clear or using identification numbers for your clones

Powered by DjangoBB