This snippet can be used to make the insecticide poison the bug
Make sure you have the Generating Insecticide snippet already. You will then need to change the ‘when I start as a clone’ block to the image on the right.
The code works by checking if the insecticide is touching the main sprite (in this case, a butterfly). If it is, it change the Health by 5, and delete the clone.
The code can be found here: