Project 552: Scratch Walk Cycle

8. Import and program the new walk cycle

Bring these new frames into Scratch to watch your new character in action.
Starting point file for this challenge

Your goal

Steps

1. Rename your project and save

Find the save button on the right side of the screen. Rename your project to something like "New Walk." Then, click "save in browser." 

2. Export all of your frames

Click on your first frame, then click on the export button. Export it as the last option in the PNG tab. Click on your second frame and repeat.

Click on your third frame and repeat.

And ... you got it, click on your fourth frame and repeat. 

3. In Scratch, make a new custom sprite

Put your mouse on the blue cat face in the bottom right corner of Scratch and click on the paintbrush tool that pops up. 

4. Upload all of your new costumes

In the costumes tab of your sprite, find the blue cat face in the bottom left corner. Click on the "Upload" button that pops up, and navigate to find your new costumes. 

5. Delete the blank costume

Custom sprites always start you off with an empty costume. We don't need it anymore, so go ahead and click the trash can next to it to delete it. 

6. Resize your sprite

Right now, your sprite is probably really tiny. You can make it bigger using the size property if you like. 

7. Copy the code from your blob into your new sprite

Go into your blob's code. Click and drag the chunk of code and hold it over your new sprite. Wait for the new sprite to wiggle, then let go of the code. The code should be copied over. 

8. Change the movement keys to A and D

Right now, both your blob and new character are controlled by the arrow keys, which makes testing it a little weird. 

Go ahead and change the controller keys for your new character to the letters A and D so you're not controlling the blob and new character at the same time. 

9. Fix the flip

If your character is turning upside down instead, you'll need to change the direction type from "All Around" to "Left/Right." This is in the sprite properties.