Discuss Scratch

CodersChild
Scratcher
13 posts

Scratch Blocks For projects

Is there a way a can use Text Edit (I'm on a Mac) to type a code using scratch blocks format, and they I could copy that code into one of my projects and it would place down the blocks. For example I could type

when flag clicked
forever
if <key pressed?>
change y by (2)
end

And In my project this would come out:

when flag clicked
forever
if <key [ w] pressed?>
change y by (2)
end
I know some people think it's impractical but there could be some major uses of it, such as typing it on your phone because on smart phones scratch is slower than main frame computers!!! There could also be other uses for it. So does a feature such as tho exist?

Last edited by CodersChild (Jan. 13, 2015 21:53:23)


VoltageGames
Scratcher
1000+ posts

Scratch Blocks For projects

you could type up some JSON, if you could learn it.
(Then you'd need to download a .sb2, unzip it, and replace the JSON with your own, rezip, and reupload).

Last edited by VoltageGames (Jan. 13, 2015 22:46:20)


i3-6100 / r9 380 / 8 gigs ram / 1 tb hdd

Click here to inflate my ego and thank me for my posts.


CodersChild
Scratcher
13 posts

Scratch Blocks For projects

VoltageGames wrote:

you could type up some JSON, if you could learn it.
(Then you'd need to download a .sb2, unzip it, and replace the JSON with your own, rezip, and reupload).
Could you please elaborate because I understood like .05% of that

VoltageGames
Scratcher
1000+ posts

Scratch Blocks For projects

CodersChild wrote:

VoltageGames wrote:

you could type up some JSON, if you could learn it.
(Then you'd need to download a .sb2, unzip it, and replace the JSON with your own, rezip, and reupload).
Could you please elaborate because I understood like .05% of that
Download your online Scratch project.
Change your .sb2 into a .zip by renaming it.
Unzip it.
Among the resources, you'll find a .json
Open it w/ Textedit.
What you'll see looks like a text version of the blocks, almost. It's Javascript. JSON.
If you can learn how to arrange everything, and what all the blocks are in text form, you can write your own JSON scripts.
If you wrote your JSON, save it.
Then recompress the folder you got from the zip.
Rename the zip into a .sb2
Upload the .sb2 to Scratch.
Profit.

i3-6100 / r9 380 / 8 gigs ram / 1 tb hdd

Click here to inflate my ego and thank me for my posts.


CodersChild
Scratcher
13 posts

Scratch Blocks For projects

VoltageGames wrote:

CodersChild wrote:

VoltageGames wrote:

you could type up some JSON, if you could learn it.
(Then you'd need to download a .sb2, unzip it, and replace the JSON with your own, rezip, and reupload).
Could you please elaborate because I understood like .05% of that
Download your online Scratch project.
Change your .sb2 into a .zip by renaming it.
Unzip it.
Among the resources, you'll find a .json
Open it w/ Textedit.
What you'll see looks like a text version of the blocks, almost. It's Javascript. JSON.
If you can learn how to arrange everything, and what all the blocks are in text form, you can write your own JSON scripts.
If you wrote your JSON, save it.
Then recompress the folder you got from the zip.
Rename the zip into a .sb2
Upload the .sb2 to Scratch.
Profit.
Thanks, I know Javascript but I didn't know it was sometimes called JSON
I just opened it and it is SO COOL!

Last edited by CodersChild (Jan. 13, 2015 23:02:15)


ChocolatePi
Scratcher
1000+ posts

Scratch Blocks For projects

Go ask this guy about his program called “ApuC”. He made it so you can translate plain text into scratch blocks. I'm working on one like that right now, but it's still in development.
Thepuzzlegame
Scratcher
1000+ posts

Scratch Blocks For projects

You could also try using blob8108's tool for converting plain text into Scratch blocks

hi!

Powered by DjangoBB

Standard | Mobile