There are checkpoints. You can enable them by clicking the star button in the level select screen and then clicking the checkpoint flag