A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Varying endings with different scores

  1. #1
    Junior Member
    Join Date
    Jan 2006
    Posts
    3

    Varying endings with different scores

    Well, I tried looking for an answer for this all over the place but it seems that it just isn't there, so if it is, sorry for asking a question already asked.

    I am right now trying to get this solved. I am building an arcade game on flash, and I still can't figure out how is it that people tell their program to go to 'game over' when the score is below a set number and to go to the next level when the score is above that number.
    Could someone tell me please?

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    i assume you are updating the score with -
    if(action==add2score){scoreVariable+=10;}

    in the endgame frame, send the timeline to a labelled frame dependant on scoreVariable -

    if(scoreVariable >= 1000){
    gotoAndPlay("nextLevel");
    }else{
    gotoAndPlay("gameOver");
    }

    any help ?

  3. #3
    Junior Member
    Join Date
    Jan 2006
    Posts
    3
    Thanks a lot! It worked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center