Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Baguettator on Sat 23/04/2022 09:04:00

Title: DrawingSurface.DrawString
Post by: Baguettator on Sat 23/04/2022 09:04:00
Hi there !

I have a question about the function DrawingSurface.DrawString(). I tried to draw this String :

"Hey man.[How are you ?"

And it has drawn :

"Hey man.[How are you ?"

Em... It was intended to be drawn :

"Hey man.
How are you ?"

Is it a problem in AGS ? Or is there a way to do that ? It would be so nice to be able to do that without "cheating" another way :)
Title: Re: DrawingSurface.DrawString
Post by: eri0o on Sat 23/04/2022 11:04:29
You need to use DrawStringWrapped

https://adventuregamestudio.github.io/ags-manual/DrawingSurface.html#drawingsurfacedrawstringwrapped

Also, you can use \n instead as new line character.