I don't know why my score counter isn't working. I am new to JavaScript and I just want a score counter to work with my collision?
Any help would be much appreciated what am I doing wrong? :)
I have also tried it using JavaScript scripting.
// Function to increase the score
function increaseScore(score) {
score = score +1;
score.globalVars = score;
}
then calling that function in the event sheet
increasScore(score)