Hello,
I'm working on the small game made by kids during a workshop and, because the result is good, I'd like to add an english translation.
I've followed the tutorial and everything works perfectly: the language can now be changed in the option menu of the game.
But the game is intended for people who don't usually play and don't have the habit to explore the menu option to set language.
My question is: is there a way to change the language by clicking on a hotspot?
Per example, I'd like 2 big flags (French & English) to appear when you start the game and you only have to click on one to set the language.
I hope it's not too much trouble answering my question.
Thank you for the help and sorry for the bother!
Comments
If you can change the language in the menu option then there should be a way to use the same way in your first title screen. Need to look closer into it.
Good luck, hope some other people can help.
AC.Options.SetLanguage (number);
Where "number" is the language ID you wish to set it to (0 = original language, 1 = first translation, etc).
You can place this code inside the "Run" function of a custom Action, which you can then place inside ActionLists and set the language number each time through the Action's UI. You can read more about custom actions in this tutorial, and in section 12.3 of the manual.
Hey how are you!
This script for this action script would be great, but it doesnt work any more.
It has comiled errors:
The script '...\CustomActions\ActionChangeLanguage.cs' must derive from AC's Action class in order to be available as an Action.
Someone know thats wrong on the code?
The following code works for me in version 1.77.4
i create a c# script with the following name "ActionChangeLanguage.cpp" in my CustomActions folder
Then Paste the following code inside (delete the previous content of the file):