In Mario Starcatcher 2, you simply have to 'catch' the star on each level to clear it. To catch the star, just jump or walk into it. It will usually be pretty difficult to reach the star though. You might have to use the [P] blocks or [!] blocks in addition to facing the usual death defying chasm jumps and moving platforms.