Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 2 of 2

Thread: A little help

  1. #1

    Default A little help

    Hey

    I'm pretty new to flash but have been making a breakout game and want to add a bit of text when a life has been lost. The code I have is;

    Code:
    if(mcBall._y >= Stage.height-mcBall._height){
                //if the ball hits the bottom
                //then reset and lose a life
                lives --;
                txtLifeLost.text = 'Lives remaining:  '+lives;
                ballXSpeed *= 0;
                //reset the ball's position
        ballYSpeed *= -1;
                mcBall._x = 280;
                mcBall._y = 354.4;
                //reset the paddle's position
                mcPaddle._x = 252;
                mcPaddle._y = 362;
                }
    At the moment, when a life is lost the txtLifeLost text comes up but stays in place. What I want it to do, is appear for 5 seconds but then disappear and then do the same when the next life is lost and so on.

    Any help?

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default

    Thank you so much for this nice post

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial