Whether you've never programmed before, you're a Scratch wizard, or even if you're a seasoned professional programmer looking to have fun - it's easy and fun to program Marty in Scratch.
Note: your Marty must be connected to your WiFi to program with Scratch. If you haven’t already done it, visit the WiFi setup guide.
First off, turn on your Marty and open up ScratchX:
When scratch loads, you’ll see a warning that looks like this:
That’s because scratchx is experimental, you can just click the green “I understand” button to continue.
Scratch uses Adobe Flash, so if you don’t see anything but the scratch homepage, make sure you’re using a web browser that supports Flash, and that Flash has permission to run.
Our Scratch extension will now scan for Martys.
Ad blockers sometimes get in the way of this, so if you’re having trouble finding your Marty try disabling your ad blocker
There are two parts to the Marty ScratchX extension, the scanner and the main Marty extension itself. Each one had a little coloured circle that shows its status, as shown in the picture above.
For the Marty Scanner
- Green: Finished scanning, found at least one Marty
- Yellow: Still scanning
- Red: Finished scanning, couldn’t find any Martys
You don’t need to wait for scanning to finish before you can start using your Marty. As soon as the scanner finds a Marty it will select it, and the status indicator for the Marty Scratch extension will turn green, as shown here:
For the Marty Scratch Status Indicator
- Green: Connected to a Marty
- Yellow: Not yet connected
- Red: Something has gone wrong! Try a different browser
If all goes well, after a few seconds the status indicator will turn green - that means it’s found a Marty. Yay!
If you have more than one Marty
If you’ve got more than one Marty connected to your network, you can select it from the dropdown list once the scanner has found it:
You’ll need to double click on the “Select Marty” block to activate that Marty, once you’ve selected it from the list. It’ll glow yellow for a second when run
If the Marty Scanner didn’t find your Marty
If the scanning has finished, but didn’t find any Martys, the status indicator will turn red. A standard ScratchX message will pop up saying See the tips window (on the right)…”, but that won’t help us here
If the scanner didn’t find your Marty
- Make sure Marty is connected to the same wifi network as your computer, and is charged up and turned on
- Use a browser like Firefox or Chrome for best results.
- You can double click the “rescan” button to try scanning again
- You can Find the IP address of your Marty using the instructions here, and then put that into the “Add Marty by IP” block in the Marty Selector. Once you’ve typed Martys IP in, double click it, and it should connect to your Marty!