A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 2 of 2

Thread: Question

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    2

    Question

    How could I make it so when I certain score is reached from blowing up your enemies that it takes you to w.e frame you choose. You guys have a tutorial for this if your using a button but not this way. I want it to be when the player reahces the score I set to take them to the next frame/scene, and there score gos up by shooting enemies not clcikg a button.

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    run a coded loop until scoreVariable is reached then stop loop.
    Code:
    this.onEnterFrame = function(){
    if(scoreVariable>1000){
    gotoAndPlay("framelabel");
    this.onEnterFrame = null; // stop checking
    }
    };

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