Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Sun 07/03/2004 00:35:02

Title: wait for dialog to finish, then animate
Post by: on Sun 07/03/2004 00:35:02
Hello,  This is my first game with AGS, and I've run into a slight snag.  What I'm trying to do is run a dialog and AFTER its finished, to start animating some objects and characters,  I've tried some different things but the animation always starts in the middle of the dialog.  The only way I've gotten it to work is if I place a hotspot over the entire room and run my script under "any click on hotspot".  Is their a way to start animating AFTER a diolog?         please help, and thank you for your time.

???
Title: Re:wait for dialog to finish, then animate
Post by: Scorpiorus on Sun 07/03/2004 01:01:40
Hello and welcome to the forums,

If you run a dialog from the interaction editor put a run-script command just after the Run Dialog action:
_
|
|__Game - Run Dialog (*)
|__Run script

Next, click on Edit script... button and type-in appropriate animation commands:

SetCharacterView(...);
AnimateCharacter(...);
SetObjectView(...)
AnimateObject(...)
etc.

How does it turn out?
Title: Re:wait for dialog to finish, then animate
Post by: on Sun 07/03/2004 01:23:28
Ironically, it seems I tried everything but that.  My problem was that I was trying to run dialog and animate ing the same script.
 Its works perfectly.  Thanks :)