Discuss Scratch
- alwayspaytaxes
-
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



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
-
100+ posts
Code Converter
Rejected? 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.
And there is also 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.https://packager.turbowarp.org/
Last edited by Dyanoa (Nov. 14, 2023 22:52:16)
- Dyanoa
-
100+ posts
Code Converter
Mate, this ain't a code converter, it's a suggestion 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
- DifferentDance8
-
1000+ posts
Code Converter
Can't really blame them, the topic's name is ambiguous. Are people placing text code here because they think it's a code converter?![]()
![]()
- Daynla
-
100+ posts
Code Converter
Yes lol, they think the topic called ‘code converter’s is a real code converterCan't really blame them, the topic's name is ambiguous. Are people placing text code here because they think it's a code converter?![]()
![]()
- 1233564773
-
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
-
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
-
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).