Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: xenogia on Tue 21/04/2009 04:07:29

Title: DisplayAt disappearing after set amount of time.
Post by: xenogia on Tue 21/04/2009 04:07:29
Hi Guys,

Is there a way to make the DisplayAt command disappear after say set amount of time.  So far it always requires a mouse click or keyboard interaction for it to disappear.
Title: Re: DisplayAt disappearing after set amount of time.
Post by: Khris on Tue 21/04/2009 10:41:37
Like mentioned in the manual, no.
You have to use your own GUI.

I believe there's a module floating around which you can use, don't know what it's called though.
Title: Re: DisplayAt disappearing after set amount of time.
Post by: monkey0506 on Tue 21/04/2009 16:54:01
The only thing I can think of that might possibly be able to do this would be ProcessClick as it simulates a mouse-click it might remove the Display box...but I'm not 100% certain. Other than that, as Khris said you would need to use a custom GUI/script to make it work this way.
Title: Re: DisplayAt disappearing after set amount of time.
Post by: xenogia on Tue 21/04/2009 16:59:18
Any examples of a custom script I can use that would automatically change the size of the gui depending on the amount of text?
Title: Re: DisplayAt disappearing after set amount of time.
Post by: Pumaman on Tue 21/04/2009 19:33:03
Try this in game_start:

game.skip_display = 0;
Title: Re: DisplayAt disappearing after set amount of time.
Post by: xenogia on Wed 22/04/2009 00:01:25
Thanks Chris I will try that :)

EDIT:

Worked like a charm, cheers for that :)
Title: Re: DisplayAt disappearing after set amount of time.
Post by: monkey0506 on Wed 22/04/2009 06:25:35
I love this sudden string of mis-/incomplete-information I've been giving out. Hahah.

I actually referenced that property but I wasn't sure how it would actually react to not being removed by mouse/key presses and failed to test my results. :=