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

#1 2009-11-23 23:21:22

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

New Block: print[]

I propose the print[] block. This would be a simple form of output that does not use the say/think blocks. The say/think blacks are great, but they require a sprite that looks like it can talk and add a cartoonish look to more serious projects. The print[] block would print  text in the sprite's current position. The sprite could be hidden or shown (like pen). There could also be "change font to[^]," "change font size to[]," and "change font color to []." So what do you think?

Edit: There could also be a "print[] at x() y()." The Scratcher could choose which would work best for the project.

Last edited by scmb1 (2009-11-26 20:34:31)


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

Offline

 

#2 2009-11-23 23:25:37

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

Re: New Block: print[]

Oh yes, I would love this! All "real" programming languages have this, so why not? Even the primitive TI Basic (extinct) has a print feature.

It would also be good for simple applications, such as a printer. No need for a variable, a stamp sprite (urgh), or lists.

We shall bump this up if neccessary! It is a perfectly normal instruction!

....................................
However, the font variations makes me think. It now seems more like an extra feature, rather than a plain instruction that goes in all programming languages. But I won't mind the blocks, and I won't mind their absence either.
What I like most is the print feature!  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

 

#3 2009-11-24 00:10:46

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: New Block: print[]

Yes, definitely! And you should be able to change font and size and color...


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#4 2009-11-24 01:42:41

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: New Block: print[]

Great idea! Even greater is that if you can print a variable value without the ugly looking orange rectangle!


Hai.

Offline

 

#5 2009-11-24 14:58:17

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: New Block: print[]

Cool! Obviously its possible, with all of these text projects people have made, but its too complicated.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#6 2009-11-24 20:08:46

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

Re: New Block: print[]

Why at the sprite's position? I'd rather like to see "print [] at x:[] y:[]" so we don't have any limitations ;P


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

Offline

 

#7 2009-11-25 01:34:41

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

Re: New Block: print[]

technoguyx wrote:

Why at the sprite's position? I'd rather like to see "print [] at x:[] y:[]" so we don't have any limitations ;P

You're right. Then we can have a simple, sprite-less application like all the fancy ones out there. Just print!


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

 

#8 2009-11-25 01:50:15

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: New Block: print[]

technoguyx wrote:

Why at the sprite's position? I'd rather like to see "print [] at x:[] y:[]" so we don't have any limitations ;P

Good point!


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#9 2009-11-25 10:37:04

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

Re: New Block: print[]

technoguyx wrote:

Why at the sprite's position? I'd rather like to see "print [] at x:[] y:[]" so we don't have any limitations ;P

Yes, good idea. Perhaps the background can have blocks like that and sprites can have blocks that print at their position. That way, the Scratcher can use the one that is easier for the project.


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

Offline

 

#10 2009-11-25 23:48:27

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

Re: New Block: print[]

scmb1 wrote:

technoguyx wrote:

Why at the sprite's position? I'd rather like to see "print [] at x:[] y:[]" so we don't have any limitations ;P

Yes, good idea. Perhaps the background can have blocks like that and sprites can have blocks that print at their position. That way, the Scratcher can use the one that is easier for the project.

Nice one! I agree with that, and others probably will.
Let's see what they think.  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

 

#11 2009-11-25 23:59:17

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: New Block: print[]

scmb1 wrote:

technoguyx wrote:

Why at the sprite's position? I'd rather like to see "print [] at x:[] y:[]" so we don't have any limitations ;P

Yes, good idea. Perhaps the background can have blocks like that and sprites can have blocks that print at their position. That way, the Scratcher can use the one that is easier for the project.

Great idea!

You should edit your topic post then... the Scratch Team will know exactly what we want.  smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#12 2009-11-26 00:42:20

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: New Block: print[]

But then some early scratchers will get confused.
"I use this print thing and words appear out of nowhere! o.O"
lol


Hai.

Offline

 

#13 2009-11-26 01:04:03

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

Re: New Block: print[]

fg123 wrote:

But then some early scratchers will get confused.
"I use this print thing and words appear out of nowhere! o.O"
lol

Hmm... I guess it depends on how much the Scratch knows. But it does make sense; "Print" means to print something.


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

 

#14 2009-11-26 20:31:34

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

Re: New Block: print[]

fg123 wrote:

But then some early scratchers will get confused.
"I use this print thing and words appear out of nowhere! o.O"
lol

Hmm.... Perhaps "Print[] at sprite's position"

Last edited by scmb1 (2009-11-26 20:32:32)


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

Offline

 

#15 2009-11-26 21:01:35

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: New Block: print[]

scmb1 wrote:

Hmm.... Perhaps "Print[] at sprite's position"

http://gershmer.net/print.gif

Just { print[] at (x) (y) } works fine.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#16 2009-11-26 22:31:14

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

Re: New Block: print[]

gershmer wrote:

scmb1 wrote:

Hmm.... Perhaps "Print[] at sprite's position"

http://gershmer.net/print.gif

Just { print[] at (x) (y) } works fine.

Yes, you are right. However, there are many blocks than could be replaced by other blocks and are just there to make it simpler. I would be happy with just the block you showed, but others might like both. Whatever combination, I hope the print block happens!


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

Offline

 

Board footer