Manipulate gravity to solve platforming puzzles. The less gravity shifts you use the more stars you will earn per level.
You can also earn stars by beating speed runs. In a speed run use as many shifts as you like!
Tip: Enemies and boxes are effected by gravity shifts – use that to your advantage.
Walkthrough here (incl. speed runs):