Discuss Scratch
- Discussion Forums
- » Connecting to the Physical World
- » Using scratchpy-compatible from Scratch 2
- mobluse
-
100+ posts
Using scratchpy-compatible from Scratch 2
In a project for Scratch 1.4 I'm using scratch2mcpi and scratchpy from GitHub to connect to Minecraft Pi Edition. I noticed that you can run Scratch 1.4 on another computer together with scratch2mcpi, scratchpy and the Minecraft Pi Python API and yet control Minecraft Pi on the first computer (i.e. Raspberry Pi). Could I do the same using Scratch 2 Offline Editor? That would require a suitable JSON-file for Import Experimental Extension (shift-click File-menu) and a suitable Python-library.
This system for Scratch 2 should preferably be compatible with the earlier Scratch 1.4-code so that you wouldn't need different versions of the code for Scratch 1.4 and Scratch 2.
Links:
http://scratch.mit.edu.ezproxyberklee.flo.org/projects/13703270/
https://github.com/scratch2mcpi/scratch2mcpi
https://github.com/pilliq/scratchpy
http://www.youtube.com/watch?v=LyxO5gANs3I
Tags: scratch14, scratch2
This system for Scratch 2 should preferably be compatible with the earlier Scratch 1.4-code so that you wouldn't need different versions of the code for Scratch 1.4 and Scratch 2.
Links:
http://scratch.mit.edu.ezproxyberklee.flo.org/projects/13703270/
https://github.com/scratch2mcpi/scratch2mcpi
https://github.com/pilliq/scratchpy
http://www.youtube.com/watch?v=LyxO5gANs3I
Tags: scratch14, scratch2
- blob8108
-
1000+ posts
Using scratchpy-compatible from Scratch 2
That's not really possible, because the Scratch 2 protocol doesn't allow for sharing broadcasts or global variables, like the Scratch 1.4 protocol does. They do different things. This system for Scratch 2 should preferably be compatible with the earlier Scratch 1.4-code so that you wouldn't need different versions of the code for Scratch 1.4 and Scratch 2.
- mobluse
-
100+ posts
Using scratchpy-compatible from Scratch 2
That's not really possible, because the Scratch 2 protocol doesn't allow for sharing broadcasts or global variables, like the Scratch 1.4 protocol does. They do different things. This system for Scratch 2 should preferably be compatible with the earlier Scratch 1.4-code so that you wouldn't need different versions of the code for Scratch 1.4 and Scratch 2.
In that case I would prefer if the changes from the Scratch 1.4-code to 2.0 would be as small and simple as possible, and that the middleware scratch2mcpi could be kept unchanged.
- blob8108
-
1000+ posts
Using scratchpy-compatible from Scratch 2
You can't do that in any sensible way, because the protocols are different. I would prefer if the changes from the Scratch 1.4-code to 2.0 would be as small and simple as possible, and that the middleware scratch2mcpi could be kept unchanged.
- Discussion Forums
- » Connecting to the Physical World
-
» Using scratchpy-compatible from Scratch 2