5 Replies Latest reply on Oct 3, 2009 11:20 PM by kglad

    Why some of my faces disappear when i have over 3 of them?

    Shootiry Level 1

      I made a game and i had 3 faces on it. Now i added one more and when i play it, i see only two.

      Could someone kind help me?

      My faces layer:

      for(i=1;i<=5;i++)

      {

           _root["face"].duplicateMovieClip("face"+i,i+1000,face);

      }

       

      for(i=1;i<=3;i++)

      {

           _root["glad"].duplicateMovieClip("glad"+i,i+1000,face);

      }

      for(i=1;i<=2;i++)

      {

           _root["face3"].duplicateMovieClip("face3"+i,i+1000,face);

      }

      for(i=1;i<=1;i++)

      {

           _root["BonusBad"].duplicateMovieClip("BonusBad"+i,i+1000,face);

      }

      My  one of my face as:

      onClipEvent(load)

      {

         function reset()

         {

              if(this._name=="face")

              {

                   this._visible=false;

              }

              else

              {

                   this._visible=true;

              }

              this.dead=0;

              this.speed=random(4)+3;

              this._x=570;

              this._y=random(380);

         }

      this.reset();

      }

      onClipEvent(enterFrame)

      {

           this._x-=this.speed;

           if(this._x<-20)

           {

                this.reset();

           }

      }

      onClipEvent(enterFrame)

      {

           if (_root._currentframe == 11) {

                 removeMovieClip("");

           }

      }

      Thanks

      Heres Download link for part of game fla

      http://www.mediafire.com/shootiry