Move your mouse to the star to get a point.
Most of the credit goes to Jon Woodcock for writing Coding Games in Scratch.