Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SilverSpook on Wed 13/03/2019 22:18:58

Title: Best way to input long strings?
Post by: SilverSpook on Wed 13/03/2019 22:18:58
I'm trying to make news articles viewable on an in-game phone, which has text lengths in the thousands of characters.
What's the best way to get those strings into the game? I know the max length of lines is 500 chars so I'm guessing appending it that way.

Ideally I'm also trying to get the text to scroll smoothly like in an actual smartphone. I was just considering rendering the entire news article text as an image to do that.
Title: Re: Best way to input long strings?
Post by: Cassiebsg on Wed 13/03/2019 22:27:25
Have you checked Khris's smartphone chat module? I know you don't want a "chat" function, but it might still help you get the effect you want.  ;)
Title: Re: Best way to input long strings?
Post by: SilverSpook on Wed 13/03/2019 22:34:24
I'll take a look.

Is there a way to just make like a scrolling text box? Like the way that you can scroll through list boxes, but not as a list?
Title: Re: Best way to input long strings?
Post by: Cassiebsg on Thu 14/03/2019 01:08:06
I haven't tried using the module, but I think that's just what it does. Only it's set up to work as a chat. But you could probably see how he did it an adapt the code to your needs.
Title: Re: Best way to input long strings?
Post by: SilverSpook on Thu 14/03/2019 02:57:04
Cool thanks!

One last thing, somewhat related: is there a way to stop GUIs from greying out when a blocking function is happening? I think I figured out a way to get this to work but it just looks weird when the GUI turns grey.
Title: Re: Best way to input long strings?
Post by: Cassiebsg on Thu 14/03/2019 03:02:06
Sure, go to General Settings > Visuals > When player interface is disabled, GUIs should >>> change "Grey out..." with "Display normaly"  ;)