Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Knox on Fri 28/05/2010 21:43:17

Title: How to break a long "display" text within AGS, NOT ingame...**SOLVED**
Post by: Knox on Fri 28/05/2010 21:43:17
Ok, Ive asked many questions lately so this should be my last one for a while, dont want to piss anyone off :P

Im sure its pretty simple but how can I break up a very long "display" text so that I dont have to scroll all the time in the window? Im not talking about using the "]" character to break lines in the game... For example, from this:

Display ("Hi, Im a super long text that makes me have to scroll all the way in AGS editor.");

To something like this?

Display ("Hi, Im a super long text that makes
me have to scroll all the way in AGS editor.");


Hope its not a stupid question :P
Title: Re: How to break a long "display" text within AGS, NOT ingame...
Post by: RickJ on Fri 28/05/2010 22:59:35
I don't know if AGS has a line continuation character or not but you could use string formatting to accomplish what you descriobe.  It would look something like
the following:


Display ("Hi, %s %s",
   "Im a super long text that makes",
    "me have to scroll all the way in AGS editor." );
Title: Re: How to break a long "display" text within AGS, NOT ingame...
Post by: Knox on Sat 29/05/2010 16:11:42
Hi RickJ,

That works great.

Thanks!  ;D