Scripting Sequence

Started by magintz, Mon 05/04/2004 20:43:34

Previous topic - Next topic

magintz

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.
When I was a little kid we had a sand box. It was a quicksand box. I was an only child... eventually.

Pumaman

MoveObject(2,134, 69,4);
while (IsObjectMoving(2)==1) Wait(1);

SMF spam blocked by CleanTalk