Changing text direction inside the game (SOLVED)

Started by fidodido, Fri 07/07/2006 00:59:22

Previous topic - Next topic

fidodido

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?

HeirOfNorton

Ahem, well a quick look through the manual turns up SetGameOption, so you would have:

Code: ags

SetGameOption(OPT_RIGHTTOLEFT, 1);


And set it to 0 to make it go left to right again.

fidodido

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.

SMF spam blocked by CleanTalk