I am trying to call a method where the player would lose a life if the enemy object reached one side of the wall. I have my lives displayed at the top of the screen. However, there seems to be an error when calling the method.
1 2 3 4 5 6 | //This is at the top of the page public int lifeCounter = 3 ; private Lives lives1; private Lives lives2; private Lives lives3; |