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

#1 2012-04-20 05:40:05

yutong91
New Scratcher
Registered: 2012-04-20
Posts: 5

Help! About stamp! ASAP! Thanks!

Did you play the game called "Pop Star" in iPhone? I try to make a similar game. I only use one sprite with five costumes. I used stamp to print different constumes on the "stage". However, now I would like to clear some of neighbouring stamps with same colour. I do not know how to do it...

Please help me!!

You are so kind!!

Offline

 

#2 2012-04-20 06:03:34

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Help! About stamp! ASAP! Thanks!

You can only clear ALL of the stamps, sadly.


I'm back.
Maybe.

Offline

 

#3 2012-04-20 06:06:55

legoscratch
Scratcher
Registered: 2010-06-18
Posts: 100+

Re: Help! About stamp! ASAP! Thanks!

There's no way to clear separate parts of the screen individually, but you could either clear the whole screen and re-stamp what's left, or make a costume that looks like the color of the background and stamp it on top.

Last edited by legoscratch (2012-04-20 06:07:36)


If you are having trouble with simple counting, use the following mnemonic device: 1 comes before 2 comes before 5,280 comes before 523,860,759 comes after the square root of -153 comes before π. This will make your previous counting problems seem like no big deal.

Offline

 

#4 2012-04-20 06:48:33

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help! About stamp! ASAP! Thanks!

legoscratch wrote:

Make a costume that looks like the color of the background and stamp it on top.

This is probably the most efficient way to do it.

Offline

 

#5 2012-04-20 07:28:09

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: Help! About stamp! ASAP! Thanks!

You could render the stamping every frame. Then when a balloon (i'm guessing) is hit you don't render it. But if you render it every frame, make the clear block at the very beginning of the script.

Offline

 

#6 2012-04-20 09:53:56

yutong91
New Scratcher
Registered: 2012-04-20
Posts: 5

Re: Help! About stamp! ASAP! Thanks!

Thank you! If I would like to add 140 small squares and how to rank them randomly efficiently?

Offline

 

#7 2012-04-20 10:24:40

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Help! About stamp! ASAP! Thanks!

clear one then redraw the others? I dunno. Chanmanpartyman's 1s1s Archery uses that technmique.


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

Board footer