Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: viktor on Sat 07/08/2004 10:37:30

Title: The animation skips
Post by: viktor on Sat 07/08/2004 10:37:30
Ok this is what I did:
(http://www.slomskov-zavod.si/~kingofrock/myproblem.png)

But for some reason the instead of doing awerithing in this order the object changes the view and instead of animating it goes straight on to the next room. hat's the problem here. There isn't anything coverd in the manual fora a situatin like this.
Title: Re: The animation skips
Post by: strazer on Sat 07/08/2004 11:24:15
The object animation has to be blocking, so it waits for the animation to finish before executing the next command.
I think the
Object - Start object animating
command is non-blocking, thus it starts the animation and immediately runs the next command (going to new room).

Remove the last 2 commands, put a "Run script" command there instead and script:

AnimateObjectEx(3, 0, 5, 0, 0, 1); // animate object blocking
NewRoomEx(5, 0, 0);
Title: Re: The animation skips
Post by: viktor on Sat 07/08/2004 11:47:10
thanx. Now It works.  ;D