I have a score counter using an if statement
if (CGRectIntersectsRect(aliens.boundingBox, heroe.boundingBox)) {
heroe.visible = NO;
//HOW DO I STOP THE SCORE++ HERE?
}
else {
score++;
[scoreLabel setString: [NSString stringWithFormat:@"%i", score]];
}
I cant find a way to stop the score++
Any hints?
try this one
}