Use space to jump over the obstacles. https://scratch.mit.edu/projects/526557379/
Ignore the blue square (Didn't know how to make it "Hide" meanwhile work)