Discuss Scratch

Lethiathan7769
New Scratcher
1 post

Scratch to Javascript converter

Phosphorus no longer works with newer projects since the app was designed for sb2 files and not sb3.
I tried.
cassi070907
Scratcher
11 posts

Scratch to Javascript converter

theXliner
Scratcher
83 posts

Scratch to Javascript converter

cassi070907 wrote:

Try sulfurous
https://sulfurous.aau.at/~sulfurous/
NIOCE
Nambaseking01
Scratcher
1000+ posts

Scratch to Javascript converter

theXliner wrote:

NIOCE

Hi! Please discuss Sulfurous and it's features at it's official topic and not here. Thanks!
phi548182
Scratcher
3 posts

Scratch to Javascript converter

Well, there is this thing called Blockly, it turns blocks into Javascript. Just search it up and click the first result.
Nambaseking01
Scratcher
1000+ posts

Scratch to Javascript converter

Nambaseking01 wrote:

One of the rejected suggestions is text-based coding, but I understand that's not what you're going for here. This does mean the ST is staying away from more complex programming languages so I think this would not be a good idea. Plus, JavaScript has dozens more features than Scratch and a conversion would mean tons of confusion.

Automatically forming a JavaScript document that the client can see would already be hard enough for the ST if you think about it.

Bumping my opinion on this topic.
minor-edit
Scratcher
500+ posts

Scratch to Javascript converter

I have been working on a Scratch to JavaScript studio and the project “This is Javascript.” features a very advanced converter.
Seth_Zaw
Scratcher
100+ posts

Scratch to Javascript converter

Here:
say (x)
alert(x);
ask (x) and wait
prompt(x);
set [var v] to (x)
var = x
change [var v] by (x)
var += x
repeat (x)
...
end
for (i=1;i<=x;i++) {

}
if <a> then

end
if (a) {

}
if <a> then

else
…. :: grey
end
if (a) {

} else {
….
}
(a) + (b)
a+b
(a) - (b)
a-b
(a) * (b)
a*b
(a) / (b)
a/b
[sqrt v] of (x)
Math.sqrt(x);
(a) = (b)
a==b
(a) > (b)
a>b
(a) < (b)
a<b
<a> and <b>
a&&b
a*b
<a> or <b>
a||b
not<a>
!a;
join(a)(b)
'' + a + b
length of (x)
x.length;
letter (x) of (text)
text(x) // replace the round brackets with square brackets
define function1 (argument)
...
function function1(argument) {

}
Anyways, no support, since JavaScript would be confusing to young children.

Last edited by Seth_Zaw (Jan. 21, 2020 23:55:12)

minor-edit
Scratcher
500+ posts

Scratch to Javascript converter

More Scratch to JavaScript examples here.
Vibe-Studios
Scratcher
1 post

Scratch to Javascript converter

MegaApuTurkUltra wrote:

Phosphorus is technically a Scratch to javascript converter
kind of but that is more JQuery
McJoe201
Scratcher
38 posts

Scratch to Javascript converter

jesseli2007 wrote:

I'm trying to convert this block:
if <> then

end
If (var == 1) then {
//your code here//
}
rdococ
Scratcher
1000+ posts

Scratch to Javascript converter

It would be potentially difficult to provide simple, easy to read source code because of the differences between how Scratch and Javascript behave. As just one example, Scratch is naturally multithreaded (meaning multiple scripts can run at the same time), for example, while most languages, such as Javascript, aren't. A forever loop in Scratch allows you to run looped animations and apply gravity to sprites - a forever loop in Javascript freezes the browser.

Last edited by rdococ (Feb. 10, 2020 23:28:46)

PumpkinBear111
Scratcher
68 posts

Scratch to Javascript converter

theXliner
Scratcher
83 posts

Scratch to Javascript converter

so?
We're just helping…. “advanced coders”

Last edited by theXliner (Feb. 12, 2020 01:41:28)

SMGIbrahim
Scratcher
16 posts

Scratch to Javascript converter

{this comment was deleted}

Last edited by SMGIbrahim (Feb. 13, 2020 19:42:55)

illudes
Scratcher
2 posts

Scratch to Javascript converter

nickeljorn wrote:

Support! I was thinking of suggesting a “view code” option (Like on Code.Org) with several programming languages to choose from, such as JavaScript, Python, Ruby, etc.

Yeah I agree with the view code button because then we could make simply coded scratch games into complex internet games that could be used to make chrome extensions and other things like that.
Maximouse
Scratcher
1000+ posts

Scratch to Javascript converter

PullJosh made a working Scratch to JS converter: https://scratch-js.now.sh/
--Explosion--
Scratcher
1000+ posts

Scratch to Javascript converter

Sheep_maker wrote:

You can't convert a costume into Javascript, I believe.

Would this be like a “download to computer as .js” button?
Maybe upon shift clicking the menu
-FailureSnowy-
Scratcher
36 posts

Scratch to Javascript converter

PumpkinBear111 wrote:

This has been rejected here:
https://scratch.mit.edu/discuss/topic/59876/?page=6#post-3471767
Imma bump this comment. If the ST already rejected a Scratch-to-JavaScript converter, why are we still asking for it? Plus, some links have been provided that convert Scratch to JavaScript. ST said they ain't making one themselves.
DrGaming_92Games
Scratcher
100+ posts

Scratch to Javascript converter

-FailureSnowy- wrote:

PumpkinBear111 wrote:

This has been rejected here:
https://scratch.mit.edu/discuss/topic/59876/?page=6#post-3471767
Imma bump this comment. If the ST already rejected a Scratch-to-JavaScript converter, why are we still asking for it? Plus, some links have been provided that convert Scratch to JavaScript. ST said they ain't making one themselves.

That was Paddle2See confirming the suggestion for Scratch being text-based, not a javascript converter.

Powered by DjangoBB