0 Replies Latest reply on Feb 21, 2008 6:01 PM by spyboy1o1

    ok, whats going on, help!

    spyboy1o1
      [CODE]onClipEvent(load){
      speed=3;
      gravity=-1.5;
      base = true;
      }
      onClipEvent(enterFrame){
      @@if (Key.isDown(Key.UP)&&this._x<725&&this._x>0){
      this._y-=speed;
      base = false;
      @@_root["flame"].gotoAndPlay(2);
      }
      if (Key.isDown(Key.RIGHT)&&this._x<725&&this._x>0){
      this._x+=speed;
      }
      if (Key.isDown(Key.LEFT)&&this._x<725&&this._x>0){
      this._x-=speed;
      }
      if (this.hitTest(_root["base"])){
      base = true;
      }
      if (Key.isDown(Key.UP)&&this._y>0){
      this._y-=speed;
      base = false;

      }
      if(base == false){
      this._y-=gravity;
      }
      if (this._x<0){
      this._x+= speed;
      }
      if (this._x>724){
      this._x-= speed;
      }
      if (this._y<0){
      this._y+= speed;
      }
      @@if (this.hitTest(_root["level1bg"])){
      @@gotoAndStop(20);
      }
      }[/CODE]
      ok look at the parts with @@ "flame" is my flame animation i wanna happen on key up is down... but it wont until i hit level1bg which is my ground, and once i hit it, it wont stop.. and also when i hit my ground, it wnt go to frame 20, it does nothing.... lol help!