Hi,
Im making a game which has a score of time, the thing is im newish at AS and I was wondering if anyone can help me make a score variable which is time?
ALSO this game will have a scoreboard from mochiads and I can’t use textfields?
PLEASE HELP
Hi,
Im making a game which has a score of time, the thing is im newish at AS and I was wondering if anyone can help me make a score variable which is time?
ALSO this game will have a scoreboard from mochiads and I can’t use textfields?
PLEASE HELP
So you want to increase the score every second eh?
Use “Intervals”, which call a function every second (or every half second… or quarter… actually you specify the time in milliseconds so it could be however many you want).
So how about this:
increaseScore = function(){
score += 10
}
scoreTimer = setInterval(increaseScore,1000)
The above code will call the function “increaseScore” every second.
:: Copyright KIRUPA 2024 //--