Hi,
I'm creating a game where the user can get lives.
But the counter is not going up when the user gets a new life?
The counter does go down when he dies.
Here is my code:
if(gethitsbyenemy()) {
Lives--;
myLabel.setText("Lives: " + Lives);
setLocation(125, 292);
}
This one is working.
This one is not:
if(checkForNewLife()) {
Lives++;
myLabel.setText("Lives: " + Lives);
}
Anyone knows the answer?
Thanks in advance.