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

#1 2012-01-02 19:05:15

tguile
New Scratcher
Registered: 2012-01-02
Posts: 10

Can i move blocks of code from 1 sprite to the next?

I have code that is very similar for each one of my sprites. I only need to change a few
things. Can I copy the code from 1 sprite to use and modify in another? And if so how do I do it? Thanks.

Offline

 

#2 2012-01-02 19:14:44

Kileymeister_test
Scratcher
Registered: 2010-01-31
Posts: 100+

Re: Can i move blocks of code from 1 sprite to the next?

Yes, you can simply drag the script into the thumbnail of the sprite you want to put it in on the bottom right.  This creates two copies of the script -  one in the first sprite and one in the second.

Note:  Dragging a script into the thumbnail of the sprite that already contains the script still duplicates it.

Last edited by Kileymeister_test (2012-01-02 19:15:21)


Kileymeister's test account.  I upload engines and demos and stuff for public use.
Currently Working on: Grapple Arms!

Offline

 

#3 2012-01-02 19:15:17

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Can i move blocks of code from 1 sprite to the next?

Yes.
Just drag the script until it's touching the image of the other sprite, then release.  This will copy the scripts to the new sprite.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#4 2012-01-02 19:20:54

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Can i move blocks of code from 1 sprite to the next?

As the above users said, you simply "drag and drop" the script from one sprite to the other  smile


Why

Offline

 

#5 2012-01-02 19:52:36

tguile
New Scratcher
Registered: 2012-01-02
Posts: 10

Re: Can i move blocks of code from 1 sprite to the next?

Thanks.

Offline

 

#6 2012-01-05 12:26:38

K-Jam
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: Can i move blocks of code from 1 sprite to the next?

yeah. Drag the script onto the picture of the sprite you want to give it to. this gives each sprite a copy of the script


http://images.inmagine.com/img/imagezoo/iz162/Iz162012.jpg COMPASS!!!

Offline

 

Board footer