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

#1 2007-11-27 21:01:23

makdaddy_98102
Scratcher
Registered: 2007-11-25
Posts: 4

sharing code, copying graphics

Two suggestions.  Please let me know if these have already been discussed, or perhaps they are already implemented and I just didn't understand.

(1) What is the way to have two sprites share the same script?  How do you copy code from one to the other?  Seems like it would be very useful (and easy to implement, and easy to understand) to have the option for one sprite to share the script of another sprite.  Or perhaps it's not that easy, because it wouldn't be clear which sprite was referred to for the highlighting as the script runs.  But maybe each sprite could still  have its own view of the script, with the understanding that any edits to one sprite's scripts affect the other sprite(s) that share the script.

(2) I'd like to be able to copy the rectangular selection in the graphics screen and paste it onto graphics screen of a different sprite/background.  Is there already a way to do that?

Michael

Offline

 

#2 2007-11-28 01:52:13

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: sharing code, copying graphics

Hi Michael, let me try to answer your questions:

(1) Currently there is no way in Scratch for several sprites to share the same script. You can, however, easily copy scripts from one sprite to another simply by dragging them from one sprite to another. There is also a 'copy' entry in the script's right-click menu, which does the same thing.

(2) You can grab any screen region for a new sprite or a new costume by right-clicking on the stage or on the sprite and selecting "grab screen region for new ..." in the pop-up menu.

Hope that helps.
-Jens-


Jens Mönig

Offline

 

#3 2007-11-28 09:47:09

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: sharing code, copying graphics

You can also copy entire sprites (all scripts, costumes, and sounds) using the rubber stamp icon above the stage or right-clicking (option-click on Macs) on the sprite below the stage.

Offline

 

#4 2008-02-06 17:18:04

tlmull
Scratcher
Registered: 2008-02-03
Posts: 1

Re: sharing code, copying graphics

Hi!
I read your posts about being able to copy scripts by right clicking and copying but when I do that there is no copy option.  I also tried dragging the script to another sprite and it doesn't work.  I can duplicate the whole sprite by clicking the sprite at the bottom of the screen but I only want to copy the scripts.
Thanks
Terry

Offline

 

#5 2008-02-06 23:00:58

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: sharing code, copying graphics

If you right-click on a block of a script, it should allow you to click on "duplicate" which makes a copy of the script starting at that block.

Offline

 

#6 2008-02-07 02:29:59

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: sharing code, copying graphics

Hi tlmull,

sounds like Scratch might not be receiving the right click mouse event in your system. If you're running on Windows you might want to check Scratch's VM Preferences menu, it's in the windows title bar of Scratch if you click on the Scratch logo cat. Select Mouse Mappings and make sure that no options are checked in there. Afterwards the right click-menu with the 'duplicate' entry should work.

Please let us know, if this helped.


Jens Mönig

Offline

 

Board footer