Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: magintz on Mon 05/04/2004 20:43:34

Title: Scripting Sequence
Post by: magintz on Mon 05/04/2004 20:43:34
Well, what I'm trying to do is have an object to appear, move across the screen, then disappear and become an invenotry item, but it doesn;t seem to want to move.

Here's my script:

ObjectOn(2);
MoveObject(2,134, 69,4);
Wait(25);
ObjectOff(2);
AddInventory(4);

What seems to be wrong, why won't things run in order and wait to finish before moving to the next.
Title: Re:Scripting Sequence
Post by: Pumaman on Mon 05/04/2004 20:47:55
MoveObject(2,134, 69,4);
while (IsObjectMoving(2)==1) Wait(1);