Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: steptoe on Thu 24/05/2012 17:09:41

Title: SOLVED: Object flips from RIGHT of screen to LEFT side
Post by: steptoe on Thu 24/05/2012 17:09:41
Hi

I'm not sure why it's decided to happen but when the rocket rises up on the RIGHT of the screen and heads to the top of the screen the rocket goes up a bit and flips to the LEFT side of the screen still animating and going up.

EDIT EDIT Solved  :-[


  object[4].Move(300, 0, 1, eBlock, eAnywhere);   // ROCKET RISING UP





EDIT: This line seems to do as per expected:


object[4].Move(300, -10, 1, eBlock, eAnywhere);   // ROCKET RISING UP


Now I have the dreaded Wait...

Tried this at the end of code but to no avail:


   object[4].StopAnimating();
    object[4].StopMoving();
    object[4].Visible=false;


================================

Here is what I have in room_RepExec:


    }
    else if (ready==3)
    {
      Game.DoOnceOnly("take off");
      region[2].Enabled=false;
      region[8].Enabled=false;
      region[5].Enabled=false;
      region[7].Enabled=false;
      region[6].Enabled=false;
      cFrankj.Say("Now to take off!!");
      cFrankj.Move(cFrankj.x+0, cFrankj.y-40, eBlock, eAnywhere);
      cFrankj.Transparency=100;
      cFrankj.ManualScaling=false;
      object[2].Move(434, 317, 1, eBlock, eAnywhere);  // DOOR CLOSING
      object[4].Graphic=579; // ROCKET WITH DOOR CLOSED
      object[2].Visible=false; // OBJECT DOOR INVISIBLE
      Wait(460); // SAY SOME STUFF
      object[4].SetView(39);
      object[4].Animate(0, 4, eOnce, eBlock, eForwards);    // ROCKET FIRING
      object[4].Animate(1, 1, eRepeat, eNoBlock, eForwards);   // ROCKET FIRING MORE
      object[4].Move(321, -100, 1, eBlock, eAnywhere);   // ROCKET RISING UP
      }


Do you have any idea as to why it should happen?

cheers

steptoe