Discuss Scratch

rtwodtwo
Scratcher
26 posts

scratch converters!

i think the scratch team should make a project converter where it converts scratch projects to C,C++,python, and other programming languages.
it would also convert python,C++ .ect to scratch projects.kind of like a translator!
say [you should help make it work by commenting and projects!] for (2) secs
AonymousGuy
Scratcher
1000+ posts

scratch converters!

This would be nice, but wouldn't be possible for the reason that Scratch is not at all like pretty much any other language. For example, there really isn't any “costumes” that I know of in any other language. The only way this could work is by compiling it to .exe, which has already been suggested.

And there is probably no feasible way to translate C and C++ into Scratch because the interpreter would have to know what things to make into a sprite, it would have to know what their x and y variables were, it would have to be able to deal with all the conversions that happen, or the methods and other things that don't exist in Scratch.

For example, in C++, you can make a method which returns a value, and that is definitely not possible in Scratch (as of yet).
rtwodtwo
Scratcher
26 posts

scratch converters!

thats true.but if you have ever heard of raspberry pi,i want to convert a project to python and run it on pi. but i dont know how it will work.but hopefully the scratch team will think about it!
blob8108
Scratcher
1000+ posts

scratch converters!

You could have a Scratch interpreter in another language, like Python.

But as AonymousGuy points out, it's pretty hard to compile the code to a different programming language – but the reason is more about things like how all the scripts run at once. And it's even harder to keep it looking human-readable at the end.
rtwodtwo
Scratcher
26 posts

scratch converters!

i just want to make a program on scratch but run it on command terminal via raspberry pi
:(:(:(
:(:(




:(







:(

































show list [:D]
JamesOuO
Scratcher
500+ posts

scratch converters!

Maybe, just maybe…
You could learn c++ and convert it by reprogramming it in c++.
I feel this is somewhat worthless; maybe try scratch.exe to make it look more professional.
Plus how diverse scratch is than other toolkits,
No support. Sorry.
rtwodtwo
Scratcher
26 posts

scratch converters!

i just want to convert scratch to python for a pinball machine scoreing system
wait (however long it takes to make the scratch/python converter) secs
i will _waffle_ _waffle_ _waffle_
Lightnin
Scratcher
1000+ posts

scratch converters!

We have our hands full. But of course you can make your own project converter! Ask around in the advanced topics for help with the Scratch 2.0 file format.
Atredies
Scratcher
10 posts

scratch converters!

I have a RPI with scratch, but i would rather have HTML or Python or possibly C++.
broadcast [someone needs to make a scratch converter]
DaSpudLord
Scratcher
1000+ posts

scratch converters!

AonymousGuy wrote:

This would be nice, but wouldn't be possible for the reason that Scratch is not at all like pretty much any other language. For example, there really isn't any “costumes” that I know of in any other language. The only way this could work is by compiling it to .exe, which has already been suggested.

And there is probably no feasible way to translate C and C++ into Scratch because the interpreter would have to know what things to make into a sprite, it would have to know what their x and y variables were, it would have to be able to deal with all the conversions that happen, or the methods and other things that don't exist in Scratch.

For example, in C++, you can make a method which returns a value, and that is definitely not possible in Scratch (as of yet).

Lightnin wrote:

We have our hands full. But of course you can make your own project converter! Ask around in the advanced topics for help with the Scratch 2.0 file format.
^^
Scratcher1002
Scratcher
1000+ posts

scratch converters!

There are several converters you could use to make it into an .exe, however they aren't made by the ST, so I can't recommend any.
Bryan007
Scratcher
100+ posts

scratch converters!

[quote=DaSpudLord][quote=AonymousGuy]This would be nice, but wouldn't be possible for the reason that Scratch is not at all like pretty much any other language. For example, there really isn't any "costumes" that I know of in any other language. The only way this could work is by compiling it to .exe, which has already been suggested.

And there is probably no feasible way to translate C and C++ into Scratch because the interpreter would have to know what things to make into a sprite, it would have to know what their x and y variables were, it would have to be able to deal with all the conversions that happen, or the methods and other things that don't exist in Scratch.

For example, in C++, you can make a method which returns a value, and that is definitely not possible in Scratch (as of yet).[/quote]
[quote=Lightnin]We have our hands full. :) But of course, you can make your own project converter! Ask around in the advanced topics for help with the Scratch 2.0 file format. [/quote]
^^[/quote]
how do you do the comment thing
sorry back to the topic
you know that you can just go
https://www.google.ca/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=convert%20scratch%20to%20python

Last edited by Bryan007 (Aug. 20, 2016 19:09:16)

Bryan007
Scratcher
100+ posts

scratch converters!

quoteaSpudLord
quote=AonymousGuy
This
would
be
nice,
but
wouldn't
be
possible
for
the
reason
that
Scratch
is
not
at
all
like
pretty
much
any
other
language.
For
example,
there
really
isn't
any
“costumes”
that
I
know
of
in
any
other
language.
The
only
way
this
could
work
is
by
compiling
it
to
.exe,
which
has
already
been
suggested.
And
there
is
probably
no
feasible
way
to
translate
C
and
C++
into
Scratch
because
the
interpreter
would
have
to
know
what
things
to
make
into
a
sprite,
it
would
have
to
know
what
their
x
and
y
variables
were,
it
would
have
to
be
able
to
deal
with
all
the
conversions
that
happen,
or
the
methods
and
other
things
that
don't
exist
in
Scratch.
For
example,
in
C++,
you
can
make
a
method
which
returns
a
value,
and
that
is
definitely
not
possible
in
Scratch
as
of
yet
.
/quote
quote=Lightnin
We
have
our
hands
full.

But
of
course,
you
can
make
your
own
project
converter!
Ask
around
in
the
advanced
topics
for
help
with
the
Scratch
2.0
file
format.
/quote
^^
/quote
how
do
you
do
the
comment
thing
sorry
back
to
the
topic

here https://scratch.mit.edu/discuss/topic/56444/
https://scratch.mit.edu/discuss/topic/60176/

Last edited by Bryan007 (Aug. 20, 2016 19:13:16)

alexphan
Scratcher
1000+ posts

scratch converters!

Bryan007 wrote:

quoteaSpudLord
*snip*
https://scratch.mit.edu/discuss/topic/60176/

Hey there!
This topic is a year old. Please don't spam and post on old topics. Check the date of the last post before posting. Thanks!

Powered by DjangoBB