Discuss Scratch

alwayspaytaxes
Scratcher
500+ posts

Code Converter

Are people placing text code here because they think it's a code converter?

Anyways, as much as I would support this, this would be very, very hard for Scratch to make. GameMaker has a completely different block library and virtual machine from Scratch
Dyanoa
Scratcher
100+ 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.
Rejected?

TOLORS wrote:

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.
And there is also https://packager.turbowarp.org/

Last edited by Dyanoa (Nov. 14, 2023 22:52:16)

Dyanoa
Scratcher
100+ posts

Code Converter

kakashi8753 wrote:

when green flag clicked
ask “Enter a whole number X:” and wait
set X to answer
set productDivisible to 1
set productNotDivisible to 1

repeat until X = 0
set digit to X mod 10
if digit mod 3 = 0 or digit mod 7 = 0
set productDivisible to productDivisible * digit
else
set productNotDivisible to productNotDivisible * digit
end
set X to floor(X / 10)
end

say “Product of digits divisible by 3 or 7: ” & productDivisible
say “Product of digits not divisible by 3 or 7: ” & productNotDivisible
Mate, this ain't a code converter, it's a suggestion
undeterminstic
Scratcher
1000+ posts

Code Converter

this is hard
DifferentDance8
Scratcher
1000+ posts

Code Converter

alwayspaytaxes wrote:

Are people placing text code here because they think it's a code converter?
Can't really blame them, the topic's name is ambiguous.
Daynla
Scratcher
100+ posts

Code Converter

DifferentDance8 wrote:

alwayspaytaxes wrote:

Are people placing text code here because they think it's a code converter?
Can't really blame them, the topic's name is ambiguous.
Yes lol, they think the topic called ‘code converter’s is a real code converter
1233564773
Scratcher
87 posts

Code Converter

when green flag clicked
set [ v] to [100]
repeat (200)
change y by (-1)
move (10) steps
if on edge, bounce
end
if <touching [ v] ?> then
say [] for (2) secs
change y by (-10)
end
wait (1) secs
mumu245
Scratcher
1000+ posts

Code Converter

Scratch is a game engine. You can convert Scratch to Python if you reimplement this game engine in Python and copy the commands. You can't do it the other way around as you can't implement Python in Scratch.
c1w1r1m1
Scratcher
3 posts

Code Converter

I want to be able to copy my code from Scratch and paste in TinkerCAD(Autodesk) for use in micro:bits, but I have little to no skills in text code, much less in C++. It would be cool if we could download our code into a .hex file (compatible with TinkerCAD).
MCU_Doom
Scratcher
2 posts

Code Converter

what about the url to do this
FreshTheCat
Scratcher
100+ posts

Code Converter

link_the_inkling wrote:

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.
Yes, because .exe code has all of the functions that scratch has (or at least, the functions can be replicated using other functions). Problem is, scratch was built to be simple and have limited functions, meaning that scratch code doesn't have all of the functions that, say, python code does.

Powered by DjangoBB