Laying eggs

This code can be used to have a sprite – e.g a hoverfly – lay eggs

This code would be on the sprite you want to be laying the eggs.

It works by creating a clone of a different sprite (the egg), then waits a random number of seconds from 1 to 10 before cloning again.

Leave a Comment

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

Scroll to Top