Discuss Scratch
- IgDegOo
-
1000+ posts
Printing your code.
When you select an option in the menu (can't be bothered to make a mockup because i'm lazy), there would be an option called “Print Code”.
This would open up a printer dialog, where you could print out all the code of the sprite that was selected when you pressed “Print Code”. It would print one script per page.
This would open up a printer dialog, where you could print out all the code of the sprite that was selected when you pressed “Print Code”. It would print one script per page.
- Abstract-
-
1000+ posts
Printing your code.
Okay, so what i understood, was that you can print code,one script per page.Like what? Could you explain more?
1. Would it be black/white?
2. How would Scratch connect to the printer?
3. What if the script was:
when green flag clickedDoes it still get it's own page? What about extra blocks you didn't delete?
hide
4. What if the script is so long it needs more than one page?
- IgDegOo
-
1000+ posts
Printing your code.
1-2: The printer dialog handles that, and I think Flash has it's own built-in printer dialog. (Stress the I think)Okay, so what i understood, was that you can print code,one script per page.Like what? Could you explain more?
1. Would it be black/white?
2. How would Scratch connect to the printer?
3. What if the script was:when green flag clickedDoes it still get it's own page? What about extra blocks you didn't delete?
hide
4. What if the script is so long it needs more than one page?
3. It prints it out, it doesn't run it!

And each lonely block(s) counts as a script.
4. Then it would make new pages whenever it went longer than the set paper until the script finishes, then it would continue.
- DaSpudLord
-
1000+ posts
Printing your code.
No support for giving each script it's own page. Then we result with near-empty pages with just this-
move (10) stepsBut I do support the idea of printing scripts. I think that printed scripts should not be reorganized, but instead should just be printed the way they are displayed in the editor.
Last edited by DaSpudLord (April 13, 2016 13:34:40)
- MathlyCat
-
1000+ posts
Printing your code.
This argument was terrible
Last edited by MathlyCat (March 21, 2017 13:00:18)
- IgDegOo
-
1000+ posts
Printing your code.
No need to sound rude. What benefit does this give the community?
Also, Flash is TERRIBLE. They're working on an HTML5 version of the site so…
No support.

- MathlyCat
-
1000+ posts
Printing your code.
*cringe*
Last edited by MathlyCat (March 21, 2017 13:00:02)
- Ninkancho
-
500+ posts
Printing your code.
This exactly. No support for giving each script it's own page. Then we result with near-empty pages with just {move (10) steps}
But I do support the idea of printing scripts. I think that printed scripts should not be reorganized, but instead should just be printed the way they are displayed in the editor.
Also, maybe the block categories should have slight, distinct dithering patterns in this feature, to optimize a bit more for grayscale printers.
- IgDegOo
-
1000+ posts
Printing your code.
Ah ok. Never mind the OP. No support for giving each script it's own page. Then we result with near-empty pages with just this-move (10) stepsBut I do support the idea of printing scripts. I think that printed scripts should not be reorganized, but instead should just be printed the way they are displayed in the editor.

So I'm guessing it would keep printing as many scripts as it could on one page, and once the script went all the way to the end of the page, it would start another page?
- IgDegOo
-
1000+ posts
Printing your code.
Just because something won't make a big impact doesn't mean you shouldI'm not being rude. I only asked a question; don't draw conclusions so quickly my fellow.No need to sound rude. What benefit does this give the community?
Also, Flash is TERRIBLE. They're working on an HTML5 version of the site so…
No support.
draw conclusions so quickly my fellow.
Last edited by IgDegOo (April 14, 2016 11:39:58)
- scratchisthebest
-
1000+ posts
Printing your code.
Support! I was making a game for Ludum Dare once in Processing, and ran into a stupid bug that I could only solve after I printed it out onto paper and traced out the code execution with my pencil. Sometimes it really helps. (Plus, Scratch blocks are pretty and it would be fun to print one out and hang it in my room.
)
The browser and OS handle printing dialogs typically, all that Scratch needs to do is assemble a picture of them and request for them to be printed.

The browser and OS handle printing dialogs typically, all that Scratch needs to do is assemble a picture of them and request for them to be printed.
Last edited by scratchisthebest (April 13, 2016 15:00:13)
- Abstract-
-
1000+ posts
Printing your code.
It would need to connect to Scratch to “See” (XD) the blocks.1-2: The printer dialog handles that, and I think Flash has it's own built-in printer dialog. (Stress the I think)Okay, so what i understood, was that you can print code,one script per page.Like what? Could you explain more?
1. Would it be black/white?
2. How would Scratch connect to the printer?
3. What if the script was:when green flag clickedDoes it still get it's own page? What about extra blocks you didn't delete?
hide
4. What if the script is so long it needs more than one page?
3. It prints it out, it doesn't run it!
And each lonely block(s) counts as a script.
4. Then it would make new pages whenever it went longer than the set paper until the script finishes, then it would continue.

- MathlyCat
-
1000+ posts
Printing your code.
*cringe*
Last edited by MathlyCat (March 21, 2017 12:59:46)
- flamingsword1
-
100+ posts
Printing your code.
No support. I'm just wondering how (removed by moderator - please keep it polite) this would work though, and the practical application of this. I mean, for it to make sense you'd have to print out everything as it is, otherwise how would it know which to group on what page, in addition some scripts are massive and wouldn't fit. Even if you have it all printed out, what do you do with it? It won't help you visualise script, since it'll be decided up into pages and you're looking through a packet, not to mention packet for every sprite, it'd be a huge waste. So let's scrap the printing idea and go to lets have an option to screenshot all of a sprite's script and save that. Well problems there too, being the image would be massive and pretty high quality so the file would be ginormous. I do see some merit to this as a way of displaying your script and being able to see it without going into editor, but I just don't think it'd be worth it and it wound only benefit a small population
Last edited by Paddle2See (April 15, 2016 10:58:11)
- therealpsy
-
1000+ posts
Printing your code.
no support, just take a screenshot of the code and print that. i don't know what it is on windows, but on iOS it's command+shift+4, then drag the cursor over the area of code.
- Deerleg
-
1000+ posts
Printing your code.
no support, just take a screenshot of the code and print that. i don't know what it is on windows, but on iOS it's command+shift+4, then drag the cursor over the area of code.I was going to say that
It may be a bit difficult to screenshot everything but I don't think this printing feature will be used by a majority of the community anyway.
Last edited by Deerleg (April 22, 2016 03:29:02)