Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Scratch Blocks For projects
- CodersChild
-
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 pressed?>
change y by (2)
end
And In my project this would come out:
when flag clickedI 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?
forever
if <key [ w] pressed?>
change y by (2)
end
Last edited by CodersChild (Jan. 13, 2015 21:53:23)
- VoltageGames
-
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).
(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)
- VoltageGames
-
1000+ posts
Scratch Blocks For projects
Download your online Scratch project.Could you please elaborate because I understood like .05% of that 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).
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.
- CodersChild
-
13 posts
Scratch Blocks For projects
Thanks, I know Javascript but I didn't know it was sometimes called JSONDownload your online Scratch project.Could you please elaborate because I understood like .05% of that 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).
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.
I just opened it and it is SO COOL!
Last edited by CodersChild (Jan. 13, 2015 23:02:15)
- ChocolatePi
-
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
-
1000+ posts
Scratch Blocks For projects
You could also try using blob8108's tool for converting plain text into Scratch blocks
hi!
- Discussion Forums
- » Questions about Scratch
-
» Scratch Blocks For projects