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

Closed Thread
Results 1 to 2 of 2

Thread: help needed in foll code

  1. #1

    Unhappy help needed in foll code

    hello there,

    m presently working on flash8. i have created a game almost complete. but the main problem m facing is as follows....

    actually in my game i have stage1 in frame 15 and stage2 in frame 30,the game over screen is in frame 35.
    i have setup a counter for life of the player.

    what i need to do is when life=0 then frame 35 should be played.

    i have used following code for that...

    onClipEvent(load){

    life=3;
    .....other variables....
    }

    onClipEvent(enterFrame){
    if(_root.enemy.hitTest(this)){
    life--;
    if(life==0){
    gotoAndPlay(35);
    }
    }

    ....other code of game
    }

    but its not working...plz help

  2. #2

    Arrow Hi56

    you have a good taste.______________________Rhinestone pendants wholesale

Closed Thread

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