Discuss Scratch

marijonas22
Scratcher
4 posts

Sb3 to Javascript

I'm trying to turn one of my Scratch projects into an app, and for the app builder that I'm using, you can import javascript. I know that Phosphorus is a thing, but it's an sb2 converter not an sb3 one. I need suggestions for ways on how to get to my goal.
herohamp
Scratcher
1000+ posts

Sb3 to Javascript

You cannot there is no tool that converts Scratch 3 into portable JS code that could then be imported into app builder
bybb
Scratcher
1000+ posts

Sb3 to Javascript

herohamp wrote:

You cannot there is no tool that converts Scratch 3 into portable JS code that could then be imported into app builder
Well yes but actually no
https://sheeptester.github.io/words-go-here/htmlifier/

Game Over
You'll find me on @LastContinue from now on.
herohamp
Scratcher
1000+ posts

Sb3 to Javascript

bybb wrote:

herohamp wrote:

You cannot there is no tool that converts Scratch 3 into portable JS code that could then be imported into app builder
Well yes but actually no
https://sheeptester.github.io/words-go-here/htmlifier/
well no, this does not make it javascript so that i can be imported into an app builder. It generates a monolithic HTML document with massive script tags
LastContinue
Scratcher
500+ posts

Sb3 to Javascript

herohamp wrote:

bybb wrote:

herohamp wrote:

You cannot there is no tool that converts Scratch 3 into portable JS code that could then be imported into app builder
Well yes but actually no
https://sheeptester.github.io/words-go-here/htmlifier/
well no, this does not make it javascript so that i can be imported into an app builder. It generates a monolithic HTML document with massive script tags
I'm working on the assumption that “app builder” refers to one of those easy-peasy HTML to app things.
JplaysStuff
Scratcher
100+ posts

Sb3 to Javascript

Technically, you can use the HTMLifier and then stick it into an HTML to Javascript converter thingamabob, but I have no idea how that works. I only did 2 minutes of research.

Lots of people make good projects, but they get ignored! You should check out a random project made by a random Scratcher when you aren't busy!
Sheep_maker
Scratcher
1000+ posts

Sb3 to Javascript

JavaScript is nothing without HTML; there at least needs to be a canvas to render the project. Perhaps it could be done in node with some package like node-canvas or whatever, but Scratch was made for the web, so it would probably require rewriting Scratch from scratch

- Sheep_maker This is a kumquat-free signature. :P
This, my signature, appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
Epicgamereco
Scratcher
20 posts

Sb3 to Javascript

It should be able to export to a JS file too, not just HTML.
minor-edit
Scratcher
500+ posts

Sb3 to Javascript

I made a studio today of projects to convert Scratch blocks to JavaScript.

John Conway










☁️

• ω •

HSL and RGB levels


Whoops! Our server is Scratch'ing its head
We couldn't find the page you're looking for. Check to make sure you've typed the url correctly.
You can try searching for what you're looking for here:
Search
(╯°□°)╯︵ ┻━┻ 404 ┻━┻ ╰(°□°╰)



these blocks have been hidden for your safety


scroll around the scripting area while holding a block of code.
hi
necroposting is allowed on the Suggestions forum for comments relevant to the discussion
manulthetattle
Scratcher
9 posts

Sb3 to Javascript

marijonas22 wrote:

I'm trying to turn one of my Scratch projects into an app, and for the app builder that I'm using, you can import javascript. I know that Phosphorus is a thing, but it's an sb2 converter not an sb3 one. I need suggestions for ways on how to get to my goal.
k sb2 or sb3 you can also go here https://forkphorus.github.io/
Maximouse
Scratcher
1000+ posts

Sb3 to Javascript

You can use PullJosh's converter: https://scratch-js.now.sh/

It generates human-readable JavaScript.

You are reading Maximouse's signature. Learn more about signatures
Click here to make pixel art.

Harakou wrote:

Yeah, this seems to be a request for custom reporter blocks - which has been suggested in the linked topic and a number of other times. I know I would personally love to see them, myself - I'm not sure what technical or design concerns there to them, if any.
Sheep_maker
Scratcher
1000+ posts

Sb3 to Javascript

Maximouse wrote:

You can use PullJosh's converter: https://scratch-js.now.sh/

It generates human-readable JavaScript.
One could argue that it is no different from the psuedo-JS Code.org generates because it requires external JS to properly execute; though I suppose PullJosh's is better than Code.org's because you can sneak in normal JS within the generated JS and it'd work

- Sheep_maker This is a kumquat-free signature. :P
This, my signature, appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
BitTheDrone
Scratcher
100+ posts

Sb3 to Javascript

Anything you can make with scratch, you can make with JavaScript. You'd just need to learn java though…

Goodbye my Salty Popsicles.
Sheep_maker
Scratcher
1000+ posts

Sb3 to Javascript

BitTheDrone wrote:

Anything you can make with scratch, you can make with JavaScript. You'd just need to learn java though…
Why would learning Java be necessary to make something in JavaScript?

- Sheep_maker This is a kumquat-free signature. :P
This, my signature, appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
A-E-
Scratcher
100+ posts

Sb3 to Javascript

BitTheDrone wrote:

Anything you can make with scratch, you can make with JavaScript. You'd just need to learn java though…
“Java” != “Javascript”
or is it !(“Java”.equals(“Javascript”))?
Maximouse
Scratcher
1000+ posts

Sb3 to Javascript

A-E- wrote:

BitTheDrone wrote:

Anything you can make with scratch, you can make with JavaScript. You'd just need to learn java though…
“Java” != “Javascript”
or is it !(“Java”.equals(“Javascript”))?
It's
"Java" !== "Javascript"
because of JavaScript's strange comparisons.

You are reading Maximouse's signature. Learn more about signatures
Click here to make pixel art.

Harakou wrote:

Yeah, this seems to be a request for custom reporter blocks - which has been suggested in the linked topic and a number of other times. I know I would personally love to see them, myself - I'm not sure what technical or design concerns there to them, if any.
Sheep_maker
Scratcher
1000+ posts

Sb3 to Javascript

And in Java, you'd use .equals for comparing strings because the same arrangement of characters might not refer to the same string in memory, which is what `==` checks for

- Sheep_maker This is a kumquat-free signature. :P
This, my signature, appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
apple502j
Scratcher
1000+ posts

Sb3 to Javascript

Sheep_maker wrote:

Maximouse wrote:

You can use PullJosh's converter: https://scratch-js.now.sh/

It generates human-readable JavaScript.
One could argue that it is no different from the psuedo-JS Code.org generates because it requires external JS to properly execute; though I suppose PullJosh's is better than Code.org's because you can sneak in normal JS within the generated JS and it'd work
scratch-js actually “works”; the preview, iirc, is using the generated JS.

OSS Contributor & Translator of Scratch 3.0, Experienced Wikian @ enwiki, Admin @ jawiki
68 Pull Requests merged to LLK repository since April 4, 2018

Scratch 3.0のOSS貢献者と翻訳者、英語版ウィキでExperienced Wikian、日本語版管理者
2018年4月4日から、68本のPRがいままでにLLKリポジトリにマージされました

Try the scratchblocks generator!
deathcharge415
Scratcher
11 posts

Sb3 to Javascript

marijonas22 wrote:

I'm trying to turn one of my Scratch projects into an app, and for the app builder that I'm using, you can import javascript. I know that Phosphorus is a thing, but it's an sb2 converter not an sb3 one. I need suggestions for ways on how to get to my goal.
You can use Forkphorus. It can convert sb3 or sb2 projects into .exe apk and it packages it into html. Put in your scratch project link into Forkphorus, and click html packager. Here is Forkphorus: https://forkphorus.github.io/
DanielW1234567890
Scratcher
13 posts

Sb3 to Javascript

bybb wrote:

herohamp wrote:

You cannot there is no tool that converts Scratch 3 into portable JS code that could then be imported into app builder
Well yes but actually no
https://sheeptester.github.io/words-go-here/htmlifier/
It worked for me…

Powered by DjangoBB

Standard | Mobile