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

#1 2009-06-04 12:12:56

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Copying Scripts from One Project to Another

Does anyone know if you can do that? How?


http://i48.tinypic.com/2z5pqad.png

Offline

 

#2 2009-06-04 12:51:31

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Copying Scripts from One Project to Another

The easiest way to do that is to export the sprite that holds the scripts (right-click on the sprite > export this sprite) and import it into another project. If this presents problems, you can always make a "dummy sprite" that you can transfer certain scripts to, then export that. Be warned: if an imported sprite's scripts contain references to variables that don't exist in the new project, the variables will be created, whether they are public ("for all sprites") or private ("for this sprite only"). Worse yet, both projects could have a variable with the same name (maybe "count" or "score") that would be changed unexpectedly when the imported scripts are run. Import with caution, and save a backup; it's ruined projects of mine in the past.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#3 2009-06-05 21:02:16

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Copying Scripts from One Project to Another

Thanks for the advice!


http://i48.tinypic.com/2z5pqad.png

Offline

 

Board footer