Discuss Scratch

link_the_inkling
Scratcher
6 posts

Code Converter

I know this might be a bit complex to implement, but what if Scratch Team made a Code converter. you can take existing code (Like a game from Game Maker: Studio 2) and transfer it into Block coding. It would be easier so that if you have a game you already made, you can transfer it into Scratch easily.
I feel like you can make this work with Game Maker Language, among other things. Like I said, This might be hard to Implement, and might take some collaboration, but I feel like it is possible.
mtech22
Scratcher
1000+ posts

Code Converter

I think this might be rejected under
2.5 Official Scratch to EXE converter
On Scratch, an important goal is to have anyone be able to look at the code for any project. This philosophy is not only important for learning code and remixing, but is also important for moderation purposes; for more information, see #3.2 and #4.1 on this list. Converting to EXE (or any other black box executables) will prevent users from looking at the code, and hence goes against this philosophy. Third party converters do exist, and you are allowed to use those, but the Scratch Team will not make an official converter.
But i'm not sure
link_the_inkling
Scratcher
6 posts

Code Converter

huh.
link_the_inkling
Scratcher
6 posts

Code Converter

But i am saying to convert other code to scratch code, not scratch code to other code.
link_the_inkling
Scratcher
6 posts

Code Converter

but maybe you're right
Vibrato
Scratcher
1000+ posts

Code Converter

Rejected under

2.2 Text-based syntax in Scratch
Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or for teachers.
-XTV-
Scratcher
100+ posts

Code Converter

Vibrato wrote:

Rejected under

2.2 Text-based syntax in Scratch
Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or for teachers.
he is asking the other way around, like python to scratch or something
Ihatr
Scratcher
1000+ posts

Code Converter

I suppose this could be added, but I don't see an easy way to do this.
You are converting two entirely different programming languages, each made without the intention for you to convert one into another. You'd have to find equivalent values, then create those blocks, then make sure there are no buggy parts (which probably will be hard), yeah. It seems to big a task for the Scratch Team to do alone.
link_the_inkling
Scratcher
6 posts

Code Converter

he is asking the other way around, like python to scratch or something

Exactly. Scratch team wants people to view the code in an easy way, so that's why they wont make a converter that converts scratch to, say, Python. So why not Make a converter that converts Python to Scratch.

Last edited by link_the_inkling (Oct. 26, 2020 17:31:34)

Vibrato
Scratcher
1000+ posts

Code Converter

link_the_inkling wrote:

he is asking the other way around, like python to scratch or something

Exactly. Scratch team wants people to view the code in an easy way, so that's why they wont make a converter that converts scratch to, say, Python. So why not Make a converter that converts Python to Scratch.
Because python (ang other programming languages) and scratch are completely different. Python (and other programming languages)'s got tons and tons of stuff that scratch doesn't have, making it impossible to convert between the two.
link_the_inkling
Scratcher
6 posts

Code Converter

Vibrato wrote:

link_the_inkling wrote:

he is asking the other way around, like python to scratch or something

Exactly. Scratch team wants people to view the code in an easy way, so that's why they wont make a converter that converts scratch to, say, Python. So why not Make a converter that converts Python to Scratch.
Because python (ang other programming languages) and scratch are completely different. Python (and other programming languages)'s got tons and tons of stuff that scratch doesn't have, making it impossible to convert between the two.

I know that Python Is different Than Scratch, But Somehow people managed to convert Scratch To EXE files. I Understand that it might be hard to do the Opposite But I think it's not impossible.
garnetluvcookie
Scratcher
1000+ posts

Code Converter

The Scratch Team has considered your idea, and rejected it for the following reason.
2.2 Text-based syntax in Scratch

Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or for teachers. This suggestion extends to coding, viewing, converting, or downloading Scratch in any text-based language, including BBCode, Javascript, some form of pseudocode, or some other programming language. If you wish to code using another language, then you can learn it on your own, but it would have to be done outside of Scratch. For those who are interested, it may be worth checking out Tosh. It is a text-based programming language which serves as a text editor for Scratch projects

In the future, please read The Official List of Rejected Suggestions before posting.
-XTV-
Scratcher
100+ posts

Code Converter

garnetluvcookie wrote:

The Scratch Team has considered your idea, and rejected it for the following reason.
2.2 Text-based syntax in Scratch

Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or for teachers. This suggestion extends to coding, viewing, converting, or downloading Scratch in any text-based language, including BBCode, Javascript, some form of pseudocode, or some other programming language. If you wish to code using another language, then you can learn it on your own, but it would have to be done outside of Scratch. For those who are interested, it may be worth checking out Tosh. It is a text-based programming language which serves as a text editor for Scratch projects

In the future, please read The Official List of Rejected Suggestions before posting.
they are suggesting the other way aloud
MaxTheurl
Scratcher
1 post

Code Converter

link_the_inkling wrote:

I know this might be a bit complex to implement, but what if Scratch Team made a Code converter. you can take existing code (Like a game from Game Maker: Studio 2) and transfer it into Block coding. It would be easier so that if you have a game you already made, you can transfer it into Scratch easily.
I feel like you can make this work with Game Maker Language, among other things. Like I said, This might be hard to Implement, and might take some collaboration, but I feel like it is possible.
medians
Scratcher
1000+ posts

Code Converter

How-how… how would they implement this?

Last edited by medians (Feb. 11, 2023 20:19:52)

BreadcatGames
Scratcher
1000+ posts

Code Converter

link_the_inkling wrote:

I know this might be a bit complex to implement, but what if Scratch Team made a Code converter. you can take existing code (Like a game from Game Maker: Studio 2) and transfer it into Block coding. It would be easier so that if you have a game you already made, you can transfer it into Scratch easily.
I feel like you can make this work with Game Maker Language, among other things. Like I said, This might be hard to Implement, and might take some collaboration, but I feel like it is possible.
Isn’t game maker for the switch though
BreadcatGames
Scratcher
1000+ posts

Code Converter

medians wrote:

How-how… how would they implement this?
They would not
GIitchInTheMatrix
Scratcher
1000+ posts

Code Converter

BreadcatGames wrote:

link_the_inkling wrote:

I know this might be a bit complex to implement, but what if Scratch Team made a Code converter. you can take existing code (Like a game from Game Maker: Studio 2) and transfer it into Block coding. It would be easier so that if you have a game you already made, you can transfer it into Scratch easily.
I feel like you can make this work with Game Maker Language, among other things. Like I said, This might be hard to Implement, and might take some collaboration, but I feel like it is possible.
Isn’t game maker for the switch though
I think you’re thinking about RPG Maker, GameMaker is, IIRC, a different engine.
sonic__fan
Scratcher
1000+ posts

Code Converter

No support, how would this even work? All of those languages are more complex than Scratch is, so many stuff wouldn't translate well, if not at all.
DevAleKX
Scratcher
1 post

Code Converter

When flag clicked

set to 100

repeat (200)

change by -(1)

move (10) steps

if on edge, bounce

end

if touching

say for (2) secs

change by -(10)

end

wait (1) secs

Powered by DjangoBB