jeudi 30 mars 2017

How do I click the wrong answer to waste time?

I'm developing a game of questions and I already have the time set and wanted to know how to do to when clicking the wrong answer the time comes down and blink red so people see that they missed. The game is for a air of andoird(Then touchEvents)

var count:Number = 41;

var myTimer:Timer = new Timer(1000,count);

myTimer.addEventListener(TimerEvent.TIMER, countdown);


function countdown(event:TimerEvent):void {
myText_txt.text = String((count)-myTimer.currentCount);
if(myText_txt.text == "0"){

Thank You!!

Aucun commentaire:

Enregistrer un commentaire