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

#1 2011-01-06 17:07:24

kboof
New Scratcher
Registered: 2011-01-05
Posts: 3

Displaying strings

I asked questions about this, and a Scratch Team member recommended I post it as a suggestion.

Scratch should provide a way to display strings (with or without a textbox background) with some basic options like resizing text.  Expanding Scratch to support string output would be useful in many ways, from println()-like output to displaying dynamic messages to users.  As a Computer Science teacher, having text output makes Scratch MUCH more appealing to use in the classroom, particularly for CS0 classes.

Offline

 

#2 2011-01-06 23:18:12

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

Re: Displaying strings

This needs to be implemented - pretty much every decent language I've seen let's your print strings.

To simplify it since Scratch is meant to be for kids, maybe something like [write [] at x: () y: ()] would be good enough. Also maybe [set writing size to ()] and [set writing color to ()] like with the Pen.

Last edited by technoguyx (2011-01-06 23:18:36)


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

Offline

 

#3 2011-01-07 15:38:00

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Displaying strings

technoguyx wrote:

This needs to be implemented - pretty much every decent language I've seen let's your print strings.

To simplify it since Scratch is meant to be for kids, maybe something like [write [] at x: () y: ()] would be good enough. Also maybe [set writing size to ()] and [set writing color to ()] like with the Pen.

Or maybe it would use the pen color...


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#4 2011-01-07 17:19:48

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

Re: Displaying strings

Ooh, every programming language lets you print - after all, how else will you do a Hello World thing?

I so support  smile


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

 

#5 2011-01-07 17:48:35

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Displaying strings

Have you seen how my Adventure game prints strings to the screen?

http://scratch.mit.edu/projects/BoltBait/1516358

That might work for you... at least as a hack.


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

Board footer