This code snippet can be used to make your sprite carry pollen from a flower, and then drop it on the grass.

The code works by checking if the sprite is touching the flower. If it is, it broadcasts the message ‘collected pollen’. The far right snippet checks if the sprite is touching the grass (green). If it is, draw the yellow pollen in patches.

The code can be found here:


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top