I simply want to calculate a score that increments by one each time.
function calcScore(event:Event):void{
if(MainChar.hitTestObject(thecoin)) {
coinScore += 1;
coinScoreLabel.text = String(coinScore);
}
}
I made coinScore global.
Now when I run the game there are no errors and I don't see the label showing anything at all it just stays blank and wont display a number.