Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Convert Scratch to Code
- cchang6
-
6 posts
Convert Scratch to Code
Hello! I am taking the AP exam for Computer Science Principles, and I used Scratch to program my Create Performance Task.
I need to include an attachment of all my code. Is there a way I can convert Scratch into readable code? If not, I will most likely have to screenshot each individual sprite and their scripts which I feel would take a long time.
Thanks!
I need to include an attachment of all my code. Is there a way I can convert Scratch into readable code? If not, I will most likely have to screenshot each individual sprite and their scripts which I feel would take a long time.
Thanks!
- Sheep_maker
-
1000+ posts
Convert Scratch to Code
You can get the project.json (which holds the block and sprite data) by renaming the .sb3 to a .zip, then unzipping it.
- badatprogrammingibe
-
500+ posts
Convert Scratch to Code
I recommend just taking a screenshot of all your code.
If you are using scratch 1.4, there is a handy “save picture of scripts” button when you right click.
If you are using scratch 1.4, there is a handy “save picture of scripts” button when you right click.
- herohamp
-
1000+ posts
Convert Scratch to Code
Use Tosh. The AP Board expects it to be a long thing of code. How did you fit in proper abstractions that the AP Board would approve of? Im just doing mine on p5js
- cchang6
-
6 posts
Convert Scratch to Code
@herohamp
Thanks for the recommendation. However, is there a way for me to upload a game I already made on Scratch into Tosh and have it convert all the code automatically?
Thanks for the recommendation. However, is there a way for me to upload a game I already made on Scratch into Tosh and have it convert all the code automatically?
- cchang6
-
6 posts
Convert Scratch to Code
@sheep_maker
Thanks; I tried that, but it just gave me a super long list of code that really isn't readable. Am I doing it wrong?
Thanks; I tried that, but it just gave me a super long list of code that really isn't readable. Am I doing it wrong?
- herohamp
-
1000+ posts
Convert Scratch to Code
yes download as sb2, go to @herohamphttps://tosh.blob.codes/app/, then click open
Thanks for the recommendation. However, is there a way for me to upload a game I already made on Scratch into Tosh and have it convert all the code automatically?
- AlphaZ3ro
-
100+ posts
Convert Scratch to Code
I'm not quite sure how to do it… on 2.0 there was a button you could click on the project page that gave you the code, but not anymore becuz it's 3.0 

- AlphaZ3ro
-
100+ posts
Convert Scratch to Code
Yeah, sounds about right.yes download as sb2, go to @herohamphttps://tosh.blob.codes/app/, then click open
Thanks for the recommendation. However, is there a way for me to upload a game I already made on Scratch into Tosh and have it convert all the code automatically?
- Discussion Forums
- » Advanced Topics
-
» Convert Scratch to Code