Hint 1
There is more than one route the star can take. You should begin by aiming for either the red square warp hole near the bottom, or the round blue warp hole at the bottom-right. Let's look at how to solve it by starting with the red square warp hole near the bottom.