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

#1 2009-01-07 21:52:52

Hellbender
Scratcher
Registered: 2009-01-07
Posts: 3

How to copy and paste a brick, then move it to a pre-defined location?

-Title-

since
http://scratch.mit.edu/forums/img/sb_no_nums/stamp.png
wont do much.

Last edited by Hellbender (2009-01-07 21:57:33)


Images hack us...no wait...imageshack.us
thats better  wink .

Offline

 

#2 2009-01-07 22:31:47

boinoinoi
Scratcher
Registered: 2007-06-05
Posts: 500+

Re: How to copy and paste a brick, then move it to a pre-defined location?

Can you be more specific? Like what stamp won't do?


http://i30.tinypic.com/335fpxx.jpg
"Boinoinoi is the only person on the forums that I expect to be wearing a monocle all the time behind that screen, so I'm sure being as classy as he is, he knows what he's doing"        http://myfastcounter.com/count.php?c_style=88&id=1284259111http://myfastcounter.com/count.php?c_style=88&id=1286068127

Offline

 

#3 2009-01-07 23:33:36

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: How to copy and paste a brick, then move it to a pre-defined location?

Do you mean you want to duplicate a sprite?
You can't do that in scratch currently. You can use the <stamp>[/blocks] and [blocks]<clear>[/blocks] blocks to make something duplicate. I could make something for you if that's what you meant...

Last edited by hmnwilson (2009-01-07 23:33:56)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#4 2009-01-08 01:58:14

Hellbender
Scratcher
Registered: 2009-01-07
Posts: 3

Re: How to copy and paste a brick, then move it to a pre-defined location?

Sorta, I mean.
A script to duplicate the current sprite, then control it, change it name, make it go somewhere, like that.


Images hack us...no wait...imageshack.us
thats better  wink .

Offline

 

#5 2009-01-08 05:17:55

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: How to copy and paste a brick, then move it to a pre-defined location?

Hellbender wrote:

Sorta, I mean.
A script to duplicate the current sprite, then control it, change it name, make it go somewhere, like that.

As hmnwilson says, there is no sprite duplication in Scratch.  There are a couple of ways to simulate it.  One is to create a pool of sprites that remain hidden until they are required.  They may have different costumes so they can appear different ways as the project requires.  An example of this is the rocks in this Asteroids remake...

http://scratch.mit.edu/projects/Paddle2See/180740

Another approach is to simulate multiple sprites by stamping and clearing very fast.  Take a look at this project...

http://scratch.mit.edu/projects/Cyclone103/262337

If the "duplicates" don't need to move after they are placed, a simple stamping approach without clearing will work fine like the blocks in this project...

http://scratch.mit.edu/projects/kevin_karplus/12280

Hope that helps!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#6 2009-01-08 19:22:03

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: How to copy and paste a brick, then move it to a pre-defined location?

Here's something I made a long time ago that has 2 different images you can move with only 1 sprite.
http://scratch.mit.edu/projects/hmnwilson/141075


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

Board footer