Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hello all, I was wondering... How would I go about making a language translator? I checked the tutorial section and I didn't see anything there. Could someone please help me figure out the basics of how it would work? Thanks.
What do you mean by language translator?
Translating anything like translate.google.com or just having an option to set the different texts in your game to different languages?
Great question. I would like to be able to translate anything like translate.google.com.
If that's too difficult, then how would I create an option to set the different texts in your game to different languages instead? Thanks.
Develop games in your browser. Powerful, performant & highly capable.
Bump.
Well, you can have a global variable that specifies the language you want. Presumably you'd have an options screen in your game where the user can change it. Then in events you just check what language was chosen when you set text.
global number language = "english" +--------------------+ | language="english" | set text to "The good blue cat." +--------------------+ +--------------------+ | language="spanish" | set text to "El gato azul diablo." +--------------------+[/code:2y30xisx]
JLoc
Thanks.