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

#1 2010-03-07 05:06:08

Helloher
Scratcher
Registered: 2010-03-07
Posts: 8

A couple of queries

Hi, I'm reasonably new to scratch and I have a few queries about it.

1) Can I save data into a text file directly in scratch?
2) Is it possible to be able to enter values into the program while it is running and then it acts on them? For example, would I be able to have <go to x sad  input  )y sad  input ?

Thanks for your time.

Last edited by Helloher (2010-03-07 05:07:39)

Offline

 

#2 2010-03-07 07:02:06

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: A couple of queries

you can put variables into those strings. <go to x sad  <{ input }> )y sad


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#3 2010-03-07 09:00:59

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: A couple of queries

You can change the value within blocks while th program is running, but you would have to restart the program for it to act on them.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#4 2010-03-07 10:24:13

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

Re: A couple of queries

I don't know about the first questions, but for your second question you can use the ask block, like this:
http://img442.imageshack.us/img442/5483/picture1mnp.png

Does that help?

Last edited by scmb1 (2010-03-07 10:42:21)


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

Offline

 

#5 2010-03-08 04:48:03

Helloher
Scratcher
Registered: 2010-03-07
Posts: 8

Re: A couple of queries

Thanks, that solved my problem.

Last edited by Helloher (2010-03-08 04:49:57)

Offline

 

#6 2010-03-08 04:52:48

Helloher
Scratcher
Registered: 2010-03-07
Posts: 8

Re: A couple of queries

Are there custom blocks available for download?

Offline

 

#7 2010-03-08 07:34:29

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: A couple of queries

There's billyedward's Streak and Jens'  BYOB (can't find the link right now) have custom blocks...

Offline

 

#8 2010-03-08 17:53:26

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: A couple of queries

Custom blocks? I think this might help...


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#9 2010-03-13 08:19:20

Helloher
Scratcher
Registered: 2010-03-07
Posts: 8

Re: A couple of queries

How easy is it to make a copy of the queston block?

Offline

 

#10 2010-03-23 06:48:09

Helloher
Scratcher
Registered: 2010-03-07
Posts: 8

Re: A couple of queries

Is there any way to save data to a text file?

Offline

 

#11 2010-03-23 08:06:48

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: A couple of queries

I dont know, but I think Jens made a program that made projects into XML.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#12 2010-03-23 09:42:20

Larry828
Scratcher
Registered: 2007-05-30
Posts: 100+

Re: A couple of queries

Helloher wrote:

Is there any way to save data to a text file?

You can save your entire project to a text file. It includes a list of revisions, a list of sprites, and their scripts.

Load Scratch, and load the project you would like to output as a text file.

Now, hold down the Ctrl and Shift keys (Ctrl-Shift).  [This works in Windows; if you have a Mac you may know if there's some other keypress combination is needed.]

While they're being pressed, click on "File" on the menu.

You'll see a couple of entries that aren't normally visible: "Write Project Summary" and "Write Multiple Project Summaries".

Click on "Write Project Summary" and you'll get a window that suggests a filename (your project's name + summary.txt) and you can choose where you want to save it.

In Windows, the default place to save this text file is "My Documents" but you can easily move to any other folder.

The project summaries are very interesting, especially if you revised the project a number of times, changed its name during the process, and so forth.  All that is recorded in the summary.

Hope this is what you were looking for....  :-)

Offline

 

#13 2010-03-23 11:57:20

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: A couple of queries

Also, you can right-click a list and click "export" to save it's contents as a text file. That's the only way to do it - it can't be done while the project is running.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#14 2010-03-23 16:46:25

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: A couple of queries

technoguyx wrote:

Also, you can right-click a list and click "export" to save it's contents as a text file. That's the only way to do it - it can't be done while the project is running.

Actually, if you hack Scratch....


nXIII

Offline

 

Board footer