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

#1 2011-01-30 11:45:25

Kowalskz
New Scratcher
Registered: 2010-11-20
Posts: 20

How to show a sprite on the screen multiple times?

Hi

I was wondering how you could show a sprite as many times as you want.
For  example I have a square sprite, and I need to be able to show the sprite on the screen 5, 6, 7… times, depending on the value of another variable.

Please tell me what you think I should do.

Thanks.

Offline

 

#2 2011-01-30 11:53:57

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: How to show a sprite on the screen multiple times?

You mean like having multiple instances of a sprite?

If you mean that, then I suggest using the http://wiki.scratch.mit.edu/images/Stamp_Block.png block. It stamps a copy of a sprite at the location of the sprite...

Last edited by WeirdF (2011-01-30 11:54:29)


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#3 2011-01-30 12:07:33

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: How to show a sprite on the screen multiple times?

Just duplicate that! Right click the sprite and duplicte (Notice it does the scripts and sounds too, so redo them if oyu like.)

Offline

 

#4 2011-01-30 12:13:39

Kowalskz
New Scratcher
Registered: 2010-11-20
Posts: 20

Re: How to show a sprite on the screen multiple times?

Thanks folks.

I don't want to duplicate the sprite. Because I don't know how many times I would need to show the sprite the next time.

I am going to try to use the stamp block.

Offline

 

#5 2011-01-30 18:48:55

jeffy24
Scratcher
Registered: 2008-12-23
Posts: 61

Re: How to show a sprite on the screen multiple times?

The stamp block doesn't copy the scripts, only the image. Unless that sprite doesn't have any other scripts anyway. Then... go ahead.


I'M A CREEPER http://4.bp.blogspot.com/-Fj1t1TmbPtc/UAp3ludvGCI/AAAAAAAAAlI/RXSkO96QN20/s1600/creeper.png

Offline

 

Board footer