Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: passer-by on Sun 13/11/2005 11:11:06

Title: replay steps
Post by: passer-by on Sun 13/11/2005 11:11:06
Hi

Is there any way to follow the character's steps and replay the game in a film-like manner up to the point the player succeeded or failed?
Title: Re: replay steps
Post by: monkey0506 on Sun 13/11/2005 15:06:55
You could use global ints and cutscene.  Look up SetGlobalInt, GetGlobalInt, StartCutscene, and EndCutscene in the manual.

Basically whenever the user took some variable action you would set a global int to determine which course of action they took, and then recreate the action during the cutscene.
Title: Re: replay steps
Post by: passer-by on Sun 13/11/2005 16:44:18
Thanks
Title: Re: replay steps
Post by: Pumaman on Sun 13/11/2005 17:19:55
It would be quite complex to manage that, though. There is a built-in Replay feature but it's undocumented because it doesn't quite work properly yet. Also, in order to play back a replay you have to exit the game and load it up again, so that wouldn't be any good for your purposes anyway.
Title: Re: replay steps
Post by: passer-by on Sun 13/11/2005 17:53:15
Quote from: Pumaman on Sun 13/11/2005 17:19:55
It would be quite complex to manage that, though. There is a built-in Replay feature but it's undocumented because it doesn't quite work properly yet. Also, in order to play back a replay you have to exit the game and load it up again, so that wouldn't be any good for your purposes anyway.


I know, I always steer clear of variables anyway!  ;D  I just hoped it would be simpler. If you have ever played "The Sting" you know what it should look like .