Answered
Score Timer.
Hi,
I am fairly new to ActionScript and i have recently started making a game in which you dodge falling enimies.
Does anyone know how i would make the score constantly count up?
And then stop when i hit an enemy.
Thanks.
Hi,
I am fairly new to ActionScript and i have recently started making a game in which you dodge falling enimies.
Does anyone know how i would make the score constantly count up?
And then stop when i hit an enemy.
Thanks.
then use the timer class:
var t:Timer=new Timer(1000,0);
t.addEventListener(TimerEvent.TIMER,timeF);
t.start();
// use t.stop() when you hit an enemy
function timeF(e:TimerEvent):void{
// you can use t.currentCount
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.