Discuss Scratch

NickAdonidas
New to Scratch
3 posts

Scratch 2.0 To C-Sharp

Der community,

i found scratch some days ago and I found it really interesting. Some projects are very good.
But I'm a c-sharp coder so my question is can i convert scratch code to C-sharp code?

Best regards,
Nick Adonidas

Last edited by NickAdonidas (May 30, 2018 18:45:05)

Kano_Llama_Llama
Scratcher
32 posts

Scratch 2.0 To C-Sharp

Here's a project that may help you to create projects from scratch to C# for Unity: Link
Otherwise I don't think there is any known way to do so, unless the ST knows one.

Last edited by Kano_Llama_Llama (May 31, 2018 01:27:39)


Just your average teenager
  • Advanced Coder
  • Hardcore Gamer
  • Child of God
  • Hopeless Romantic
Jonathan50
Scratcher
1000+ posts

Scratch 2.0 To C-Sharp

procd actually made a Scratch compiler that generates C# code. That's probably not what you're looking for, though.
NickAdonidas
New to Scratch
3 posts

Scratch 2.0 To C-Sharp

@Kano_Llama_Llama
No, not for C# for Unity. I want plain C# ;-)

@Jonathan50
I#m going to test it

Thank you guys very much for yor fast replies!

Best regards,
Nick
NickAdonidas
New to Scratch
3 posts

Scratch 2.0 To C-Sharp

@Jonathan50
Sadly this is an Exe-Compiler and not a source code converter to c# source code

Many thanx for your reply,
Nick Adonidas

Last edited by NickAdonidas (May 31, 2018 20:23:04)

hardcore_penguin
Scratcher
1 post

Scratch 2.0 To C-Sharp

Kano_Llama_Llama wrote:

Here's a project that may help you to create projects from scratch to C# for Unity: Link
Otherwise I don't think there is any known way to do so, unless the ST knows one.
yes
procd
Scratcher
100+ posts

Scratch 2.0 To C-Sharp

NickAdonidas wrote:

@Jonathan50
Sadly this is an Exe-Compiler and not a source code converter to c# source code

Many thanx for your reply,
Nick Adonidas
You're correct although it does generate C# code which then gets compiled to the exe. The C# code generated is not readily available as far as I remember and would not be particularly nice to read. The exe code is not obfuscated as far as I remember so you could probably de-compile it. TBH I don't see why you would want to go from Scratch to C#? I can only think you like the simplicity and immediacy of Scratch? If you want to write games in C# then I recommend using what I used as part of the library for the compiler which is monogame.

After years of not visiting Scratch I just happen to revisit Scratch and see this question?

Powered by DjangoBB

Standard | Mobile