0 Replies Latest reply on Jun 6, 2010 5:40 AM by Schabloah

    Timed frames bug I think or i dunno?! Help!

    Schabloah

      Hello!

      I have like a problem.

      It  just bugs in my game. Its something with the timed frames i think.

      Ok,  you can download the fla here:

      http://www.2shared.com/file/6ahHK9kz/frorumsgej.html

      and  look at swf here:

      http://www.swfcabin.com/open/1275822393


      Ok.

      Frame  1:

      A mc of 2 dudes, one of them says a thing and one of them has a  gun pointed at the first dude.

      I have timed this frame so it goes  to frame 2 after a few sec. This is the code in frame action:

      stop();
      function moveTo2():Void {

       

          gotoAndStop(2);

       

      }

       


      setTimeout(moveTo2, 3500);

       

      function doSomething(){}

       

      Frame 2:

      Then the other dude puts down his gun and then you can hit him.


      The  gun-dude is his own mc and you can click him, he has this code:

      on  (release) {
      _parent.gotoAndStop (5)
      }

      And in the frame it is a timed code again so if you dont click  the dude fast you´ll go to a frame there he shoots you and you die.

      Heres  the frame code:

      stop();
      function moveTo3():Void {

       

          gotoAndStop(3);

       

      }

       


      setTimeout(moveTo3, 1500);

       

      function doSomething(){}

       

      Frame 3:

      In  frame 3 its just that if you where too late to click him he pulls up his  gun again and you can click him any more

      and you´ll go to another  frame ther he kills you.

      Frame code:

      stop();
      function moveTo4():Void {

       

          gotoAndStop(4);

       

      }

       


      setTimeout(moveTo4, 3000);

       

      function doSomething(){}

       

      Frame 4:

       

      In  this frame its an MC and you see the dude that does not have a gun gets  shot. After that mc

      has played you´ll go to a you failed try  again frame,

      Frame code:

      stop();
      function moveTo8():Void {

       

          gotoAndStop(8);

       

      }

       


      setTimeout(moveTo8, 3000);

       

      function doSomething(){}

       

      Frame 5:

      Now. If  you did click the gun-dude before he pulled up his gun again you

      ´ll  come here. Heres a MC of you hitting him and he dropps his gun.

      After  the MC has played you´ll go to another frame to watch another short  movie.


      This is the frame code:

      stop();

       

      function moveTo6():Void {

       

          gotoAndStop(6);

       

      }

       

       

      setTimeout(moveTo6, 3000);

       

      function doSomething(){}

       

      Frame 6:

      Anyway.  In frame 6 its that short lil movie of him standing over the dead body  he just hitted and smiling and all that.

      Then you´ll go to a win  frame:

      Frame code:

      stop();
      function moveTo7():Void {

       

          gotoAndStop(7);

       

      }

       


      setTimeout(moveTo7, 5430);

       

      function doSomething(){}

       

      Frame 7:

      The win  frame... it just says: WIN

      After that you´ll go to a play again  frame.

      Frame code:

      stop();
      function moveTo9():Void {

       

          gotoAndStop(9);

       

      }

       


      setTimeout(moveTo9, 3000);

       

      function doSomething(){}

       

      Frame 8:

      If you  got shot you´ll go to this fail frame. It says fail and a play agian  button.

      Frame code:

      stop()

      And button code:

      on(release)
      {gotoAndPlay(1)}

       

      Frame 9:

      Last frame. It is the  play again frame if you won the game and frame code is:

      stop();

      and  button code is:

      on(release)
      {gotoAndPlay(1)}

       

      The bug:

      When i try the game its  randomly jumps around. Bom you on the WIN frame and BOM you are on  frame 3 and BOM fail frame and all that. Enoying

      I hope i explained good. I think its easier to  understand if you´ll take a look at the fla.

      I´v tried in  hours to fix this but i cant. So now im asking you. Big almighty real  programers: What am i doing wrong

      Plzplzplzplzplz i would be so happy if some one could help me  ByeBye!

      (And if you know what im doing wrong im a noob so explain a  bit... you know... )