Decide what your pet will do when it receives the 'food' message.
Go to the Events category and drag out a when I receive block.
To make your pet glide toward the food, click on the Motion category. Use the glide block to tell your pet where you want it to go.
Add another glide block at the end of the script to make your pet go back to its original position.
Next, give your pet something to play with