I coded a simple code to make the caterpillar go up and speed up and then stop, and then go down and speed up. (you will see what I mean when you click the flag.) Also, you can place the caterpillar by pressing space. (I made that part if you want to figure out how to build a level with this.)
All art is from @Superspindelapan Please tell me any glitches.