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

#1 2011-10-05 19:49:38

connorthesuper
New Scratcher
Registered: 2011-10-01
Posts: 2

Text form of code?

Is there any way to export a Scratch program as text?  Such text would be of minimal utility, perhaps, but I'm old-fashioned that way (this is actually connorthesuper's dad posting), and it would make it easier to talk about Scratch code other places besides these forums...

Offline

 

#2 2011-10-05 19:55:32

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Text form of code?

Hi!  I believe you want to run a scratch project like python runs them, as a text only thing?  I don't think Scratch currently has that capability, but you should check out Python as a better alternative!  wink


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#3 2011-10-05 20:31:18

connorthesuper
New Scratcher
Registered: 2011-10-01
Posts: 2

Re: Text form of code?

Thanks for answering!

No, I don't want to be able to run it that way.  I just want a way to export the scripts in text form.  Makes it easy to quote them, pass around code snippets in places that don't have these convenient buttons ↓ for inserting Scratch blocks/.  Submit answers to Rosetta Code that aren't screenshots, maybe...  smile

Offline

 

#4 2011-10-05 20:31:24

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Text form of code?

Hold down shift, click "File", and select "Write Project Summary".  I don't think you need fill-screen off.

It will allow you to save a .txt file summarizing the project.  However, it won't run as code.

Offline

 

#5 2011-10-05 20:41:28

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Text form of code?

connorthesuper wrote:

Thanks for answering!

No, I don't want to be able to run it that way.  I just want a way to export the scripts in text form.  Makes it easy to quote them, pass around code snippets in places that don't have these convenient buttons ↓ for inserting Scratch blocks/.  Submit answers to Rosetta Code that aren't screenshots, maybe...  smile

Ah!  Well, you can right click on the script area and it should say 'Save picture of scripts'.
That would make an image of the scripts you've used.  What Greenatic suggested would work,
but you would have to some editing of the text!  wink


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#6 2011-10-05 23:01:26

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Text form of code?

I second what Greeatic said, but you'd have to do some major shifting to get to the actual code  hmm

You could create your own short hand (e.g. [green-flag]{[go to x() y()]} etc.) but you'd have to manually write it and couldn't import it; also, there isn't - as far as I know - a universally accepted text short-hand of Scratch blocks.  The closest thing is the Forum's text code for blocks.

Last edited by MoreGamesNow (2011-10-05 23:02:22)


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#7 2011-10-06 08:35:28

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Text form of code?

Is this what you want? Make sure you edit some of the scripts to work in your scratch or use the source code or it wont work properly.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer