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

#1 2007-08-25 20:53:23

PaulMathews
Scratcher
Registered: 2007-08-08
Posts: 4

Copy and paste code between scratch programs !!!!

For some reason I can't do this I find it Odd that something that's supposed to be easy and simple to use can't even let you copy code you have already written to another project ?

I am trying to lean and I am also cutting bits of code from other peoples projects to try to get my game to do as I wish, good way to learn things that. Its Ok will give them a credit in my game opening sequence and credits  smile

There must be a way to copy already written code into my project right, i must be missing something right ??

Just new to this, but would llike to make my own game  smile


Thanks.

Offline

 

#2 2007-08-25 22:01:11

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

Re: Copy and paste code between scratch programs !!!!

You can start with an entire project and edit it.
You can export sprites (including their scripts) and import them to a new project.
You can copy costumes.

What you can't do is have two projects open at the same time and do drag-and-drop copying.

That's actually not a bad idea to add to scratch, though.

Offline

 

#3 2007-08-26 01:04:15

AngelEyra
Scratcher
Registered: 2007-07-19
Posts: 100+

Re: Copy and paste code between scratch programs !!!!

I've noticed that you can drag into the window but not out of this. Why?

Or is that some other program I'm thinking about...

eyra


AngelEyra's . MyScratchR . Blog
Think with portals
Sorry, Companion Cube... I didn't mean to...

Offline

 

#4 2007-08-26 11:57:10

Vanslar
Scratcher
Registered: 2007-03-17
Posts: 100+

Re: Copy and paste code between scratch programs !!!!

kevin_karplus wrote:

You can start with an entire project and edit it.
You can export sprites (including their scripts) and import them to a new project.
You can copy costumes.

What you can't do is have two projects open at the same time and do drag-and-drop copying.

That's actually not a bad idea to add to scratch, though.

it would be very conveniant, but that would make it so that copiers, like raymen and davidchen, could really copy a project and submit it as their own


  I am a royal pain in the butt, I am ~Vanslar~       
      Want better gravity? Go to
Realistic Gravity, By Vanslar 2-D
Want a better way to spend your spare time? CubeField

Offline

 

#5 2007-08-29 00:32:32

PaulMathews
Scratcher
Registered: 2007-08-08
Posts: 4

Re: Copy and paste code between scratch programs !!!!

Nothign stopping someone loading someone elses project now puttign a different title screen and chaneing a few things and call it their snow. It's completely stupid and NOT new user freindly to this program or prorammignin gertnral not to be able to copy and paste odl code you have done in other projects to do things you want to be done ina project. Its just a basic programming thing.

Untill they do this they should scrap this scratch. At least don't call it easy to use and for begginners as its not without copy and paste between programs.

My two .4 cents.

Byes.

Offline

 

#6 2007-11-04 09:28:09

pasta3049
Scratcher
Registered: 2007-10-18
Posts: 31

Re: Copy and paste code between scratch programs !!!!

If a copy/paste is introduced, it will have to copy across creator information as well.

Offline

 

#7 2007-11-05 02:36:33

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

Re: Copy and paste code between scratch programs !!!!

copying and pasting stacked blocks from one instance of Scratch showing one project into another instance of Scratch showing another project is actually a rather tricky thing. I have experimented with a little patch that allows exporting/importing blocks and stacks of blocks into separate files or the clipboard. Let me tell you, it works in principal, but there are a bunch of problems I found no satisfactory solution to:

1. if the code uses variables, these variable declarations have to be copied as well. They might, however, conflict with existing variables in the target project.

2. Whenever a block refers to another sprite (e.g. the 'point towards:' or 'go to:' blocks) this information is inconsistent within the target project and will have to get lost when copying that stack of code.

3. Same problem when blocks refer to a certain costume of the source project that is not present in the target sprite.

For these (and yet some more) reasons I personally don't miss the inter-project copying capability of scripts in Scratch at all, but instead prefer (and advocate) exporting / reimporting whole sprites, because then at least you know what you're doing and what you need to adjust.


Jens Mönig

Offline

 

#8 2009-10-08 16:50:38

gryffn
Scratcher
Registered: 2009-07-20
Posts: 7

Re: Copy and paste code between scratch programs !!!!

theres a seten hotkey on the keyboard to copy and paste but i forgot the key
i know that you have to hold down the control key but like i said i forgot the key
'-_- sorry

Offline

 

#9 2009-10-08 18:38:13

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

Re: Copy and paste code between scratch programs !!!!

gryffn wrote:

theres a seten hotkey on the keyboard to copy and paste but i forgot the key
i know that you have to hold down the control key but like i said i forgot the key
'-_- sorry

Please don't bring old topics back.


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