im creating a shooting game..
and my the goal of the game is to shoot as many as you can in the time given.
and if the time runs out it should end or show a message or go to the next frame.
below is my code
stop();
Mouse.hide();
var musicGame:gameMusic = new gameMusic();
var JellyGhost_mc:JellyGhost = new JellyGhost();
var Congrats:congratsTXT = new congratsTXT();
var randomX:Number;
var randomY:Number;
var randomScaleX:Number;
var randomScaleY:Number;
var count:Number = 3;
var myTimer:Timer = new Timer(1000,count);
var scoreTxt:int = 0;
var blow:blow_mc = new blow_mc();
var testLoad:Loader = new Loader();
var fireSplat:Splat = new Splat();
musicGame.play(0,100);
myTimer.addEventListener(TimerEvent.TIMER, countdown);
function countdown(event:TimerEvent):void {
countDown.text = String((count)-myTimer.currentCount);
}
myTimer.start();
if(countDown.text == "0"){
addChild(Congrats);
}
it has no error but it didnt show the Congrats image or go to the next frame. i think ive write a wrong code, any idea or alternatives?
im just a newbie here making my first game.
thanks in advance
123kid

New Topic/Question
Reply



MultiQuote




|