Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: fidodido on Fri 07/07/2006 00:59:22

Title: Changing text direction inside the game (SOLVED)
Post by: fidodido on Fri 07/07/2006 00:59:22
Hello,

I'm using version 2.71, and there's an option which allows you to make the text be written backwards, to support Hebrew language.

But I couldn't find a script function that allows me to change this option on and off during the game.

I need it because in some parts of the game, there are numbers and calculations, and the numbers are shown backwards.

Does anyone know if such a function exists?
Title: Re: Changing text direction inside the game
Post by: HeirOfNorton on Fri 07/07/2006 02:43:30
Ahem, well a quick look through the manual turns up SetGameOption, so you would have:


SetGameOption(OPT_RIGHTTOLEFT, 1);


And set it to 0 to make it go left to right again.
Title: Re: Changing text direction inside the game
Post by: fidodido on Fri 07/07/2006 04:27:03
Thank you very much.  :D

I actually went over the manual several times, but I just couldn't find it...

I searched for the word "backwards" in the manual, and I also looked in the Variables that control the options, and it wasn't there.

Thanks again for finding it, it worked.