Discuss Scratch

one_who_codes
Scratcher
23 posts

working with json.

i think that you should add some new blocks that interact with json files. you would be able to save data and load it either in that game or even in other games. look at these blocks below for help.

save() into file()
load() from file()
try
except error filenotfound

you should rekognise these blocks. these will interact with files on the computer. not on a server. if the file does not exist for saving, it will create a file.
one_who_codes
Scratcher
23 posts

working with json.

bump
gosoccerboy5
Scratcher
1000+ posts

working with json.

Please don't bump your topic unless it is off the page or has been 24 hours since the last post (was it off the page?)
Tunde123
Scratcher
1000+ posts

working with json.

one_who_codes wrote:

bump
1. Only bump if the topic is off of page 1.
2. You can already save projects. (Assuming if you have Scratch 3.0 Offline Editor)

Last edited by Tunde123 (Dec. 10, 2020 14:45:57)

MDCCCLXVII
Scratcher
1000+ posts

working with json.

The Scratch Team has considered your idea, and rejected it for the following reason.

Za-Chary wrote:

2.2 Text-based syntax in Scratch
Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or for teachers.

This suggestion extends to coding, viewing, converting, or downloading Scratch in any text-based language, including BBCode, Javascript, some form of pseudocode, or some other programming language. If you wish to code using another language, then you can learn it on your own, but it would have to be done outside of Scratch. For those who are interested, it may be worth checking out Tosh. It is a text-based programming language which serves as a text editor for Scratch projects.
In the future, please read The Official List of Rejected Suggestions before posting.

Last edited by MDCCCLXVII (Dec. 10, 2020 14:47:00)

Tunde123
Scratcher
1000+ posts

working with json.

MDCCCLXVII wrote:

The Scratch Team has considered your idea, and rejected it for the following reason.

Za-Chary wrote:

2.2 Text-based syntax in Scratch
Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or for teachers.

This suggestion extends to coding, viewing, converting, or downloading Scratch in any text-based language, including BBCode, Javascript, some form of pseudocode, or some other programming language. If you wish to code using another language, then you can learn it on your own, but it would have to be done outside of Scratch. For those who are interested, it may be worth checking out Tosh. It is a text-based programming language which serves as a text editor for Scratch projects.
In the future, please read The Official List of Rejected Suggestions before posting.
I will ask a mod to close this topic now.
one_who_codes
Scratcher
23 posts

working with json.

MDCCCLXVII wrote:

The Scratch Team has considered your idea, and rejected it for the following reason.

Za-Chary wrote:

2.2 Text-based syntax in Scratch
Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or for teachers.

This suggestion extends to coding, viewing, converting, or downloading Scratch in any text-based language, including BBCode, Javascript, some form of pseudocode, or some other programming language. If you wish to code using another language, then you can learn it on your own, but it would have to be done outside of Scratch. For those who are interested, it may be worth checking out Tosh. It is a text-based programming language which serves as a text editor for Scratch projects.
In the future, please read The Official List of Rejected Suggestions before posting.
the text spots are only for variables! (and file names)
Tunde123
Scratcher
1000+ posts

working with json.

one_who_codes wrote:

-snip-
the text spots are only for variables! (and file names)
More scripting to do that also. ST would not have enough recourses to make that.
Paddle2See
Scratch Team
1000+ posts

working with json.

Sorry - Allowing access to the local computer file system is quite a risky step that also doesn't fit well with our design goals of keeping Scratch simple and easy to learn.

Powered by DjangoBB