Hi. I'm just learning Greenfoot. I have a problem with this function.
This is my code:
int nrrockets = numberOfObjects(Rocket.class);
if(nrrockets==0)
{lives=lives-1;addObject(rocket,75,300);};
