Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Moox on Sun 11/07/2004 04:23:19

Title: Stop during animation
Post by: Moox on Sun 11/07/2004 04:23:19
Well, heres the question. It is probably really easy to solve, I'm probably just overlooking a command.
How would you script it so The game wont do anything else untill an animation is over?
Title: Re: Stop during animation
Post by: TerranRich on Sun 11/07/2004 06:33:25
Good question. Add this script right after the animation command:

while IsObjectAnimating(123) { Wait(1) };

While the object #123 is animating, wait a game cycle. Or, look up AnimateObjectEx() in the manual. :)
Title: Re: Stop during animation
Post by: Moox on Sun 11/07/2004 06:40:41
Thanks