It is my first time programming and I am trying to use greenfoot. Im makinga game where the main car cannot let any other cars pass by it. It will shoot grenades at the other cars and the score will increase by 1 for each hit car. I am trying to implement a life system where for each car that manages to pass by and reach one side of the screen, a life will be lost. I have added the life objects onto the screen but have no idea as to how to implement the code?
