In this project, the sprite collects the candy upon instruction passed on by the user.
View this project in Scratch
Scratch