Discuss Scratch
- Discussion Forums
- » Suggestions
- » Looking at code in other languages
- PhysicsLover999
- Scratcher
100+ posts
Looking at code in other languages
I personally think that it would be neat if we could have a couple buttons at the top of our editor workspace that would either have the names of different programming languages, or have logos of different programming languages.
for instance, if we had the block in our workspace and we clicked on the JavaScript button, it would say
moveForward(10);
This may take a bit of work, but I think it would be extremley fun and helpful.
for instance, if we had the block in our workspace and we clicked on the JavaScript button, it would say
moveForward(10);
This may take a bit of work, but I think it would be extremley fun and helpful.
“Two things are infinite: the universe and human stupidity; and I’m not sure about th’universe!” - Albert Einstein
- mathfreak231
- Scratcher
1000+ posts
Looking at code in other languages
Only most of the blocks in Control and a few others would actually have counterparts in other languages that aren't modded for game-making use (such as Roblox Lua). For example, the function moveForward doesn't actually exist in bare JavaScript.
As it wouldn't really be worth adding because of this, but still fun to add, I'm neutral on this one.
As it wouldn't really be worth adding because of this, but still fun to add, I'm neutral on this one.
i have grown as a person. and ive grown, literally. none of my posts from before 2022 represent me accurately.
- AonymousGuy
- Scratcher
1000+ posts
Looking at code in other languages
Actually converting the scripts to JS would take quite a bit of work…
However, what if there was an open-source Scratch JS library? With stuff like this:
But that would rely on HTML as well, so…
Maybe converting to Java? That would be even more confusing.
However, what if there was an open-source Scratch JS library? With stuff like this:
function switchBackground(url) { document.body.style = "background-image: url(url);"; }
But that would rely on HTML as well, so…
Maybe converting to Java? That would be even more confusing.
- Discussion Forums
- » Suggestions
- » Looking at code in other languages