Discuss Scratch

uobihara12
Scratcher
26 posts

Scratch to Python using Snap! 4.0

CurtisW wrote:

If anyone hasn't tried Snap! 4.0, I think it is really great.
It's almost like upgraded Scratch, and you can do many more things like… Scratch to Python!

If you go to http://snap.berkeley.edu/snapsource/snap.html and open the Example file called Codification, you can create a simple program in Snap! and drag and drop the script into the variable ‘script’. Then run this block and your variable will be set to whatever you drag-dropped.

At the bottom there is a block called ‘Map to python’ with some other blocks attached, and you can run that block and it will convert your scratch to Python! You can see the results in the Stage and export the ‘Code’ variable and run it on python!

Very neat.
Umm, where is the button?
PA-CHOW_77
Scratcher
1 post

Scratch to Python using Snap! 4.0

where is the python button?
70274
Scratcher
6 posts

Scratch to Python using Snap! 4.0

WooHooBoy wrote:

Starkader wrote:

I cant get snap for my operating system(linux)
Please don't necropost.
But it hasn't been 10 years yet XD
bbrainstormer
Scratcher
11 posts

Scratch to Python using Snap! 4.0

CurtisW wrote:

If anyone hasn't tried Snap! 4.0, I think it is really great.
It's almost like upgraded Scratch, and you can do many more things like… Scratch to Python!

If you go to http://snap.berkeley.edu/snapsource/snap.html and open the Example file called Codification, you can create a simple program in Snap! and drag and drop the script into the variable ‘script’. Then run this block and your variable will be set to whatever you drag-dropped.

At the bottom there is a block called ‘Map to python’ with some other blocks attached, and you can run that block and it will convert your scratch to Python! You can see the results in the Stage and export the ‘Code’ variable and run it on python!

Very neat.

You can also convert to other languages, like c
PigeonMan05
Scratcher
1 post

Scratch to Python using Snap! 4.0

can you import games from scratch
ninjagolloyd
Scratcher
500+ posts

Scratch to Python using Snap! 4.0

PigeonMan05 wrote:

can you import games from scratch
yes
austinsusa
Scratcher
1 post

Scratch to Python using Snap! 4.0

Is there a way to do this with pre-existing snap code. Like can I copy the codification mapping blocks over to another file?
DarkBrave_
Scratcher
1 post

Scratch to Python using Snap! 4.0

can you show some pictures?
Advaith__Krishna
Scratcher
8 posts

Scratch to Python using Snap! 4.0

can you import from scratch
kzooy
Scratcher
44 posts

Scratch to Python using Snap! 4.0

OSimulators wrote:

CurtisW Wrote:
f anyone hasn't tried Snap! 4.0, I think it is really great.
It's almost like upgraded Scratch, and you can do many more things like… Scratch to Python!

If you go to http://snap.berkeley.edu/snapsource/snap.html and open the Example file called Codification, you can create a simple program in Snap! and drag and drop the script into the variable ‘script’. Then run this block and your variable will be set to whatever you drag-dropped.

At the bottom there is a block called ‘Map to python’ with some other blocks attached, and you can run that block and it will convert your scratch to Python! You can see the results in the Stage and export the ‘Code’ variable and run it on python!

Very neat.
How do you do the scratch to python thing?

same OSimulators im learning python also
ravenclawbuddy84
Scratcher
13 posts

Scratch to Python using Snap! 4.0

Does this actually work anymore because Snap! is on version 5.3.7 now.
1156276519
Scratcher
35 posts

Scratch to Python using Snap! 4.0

I never new Snap! was a thing! Thank goodness I found it
1156276519
Scratcher
35 posts

Scratch to Python using Snap! 4.0

when green flag clicked
forever
if <touching [Snap!] ?> then
play sound [This is awesome!] until done
end
end

Powered by DjangoBB