Next, you will need to make 5 custom blocks. On your main character, go to My Blocks, then select Make a Block.
Make a block called "Animation" We'll add more to this blocks later.
Make this block called "Touching Stuff". Don't forget to check the run without screen refresh box.
Add this code to the touching stuff block....for now.
Next, create a third custom block. Click add number input, run without screen refresh and type in the names "Move" and "Speed".
Add this code to the custom block: