Multiple Languages: Best Practices

Get help using Construct 2

Post » Sun Dec 08, 2013 5:39 am

What is the easiest and most efficient way to support multiple languages. I would guess it be to have a language select screen at the beginning of the game and then direct to different layouts accordingly. Any thoughts from someone with more experience?

-Mike
Image
MIKE ASCHENBRENNER | RCMADIAX
Twitter/Instagram/Vine: @RCMADIAX
B
35
S
7
G
4
Posts: 186
Reputation: 4,574

Post » Sun Dec 08, 2013 2:50 pm

@Nutzaboutpoker, I think that would not be very good practice. There is unnecessary amount of space used.
For simple game I think it would be enough to just have global variable "language" and then for example set it like.

If language is "English"
Text id variable = "Start" -> set text to "Start"
Text id variable = "Quit" -> set text to "Quit"
If language is "Finnish"
Text id variable = "Start" -> set text to "Aloita"
Text id variable = "Quit" -> set text to "Lopeta"

For text heavy big game there could maybe be a bit more elegant system.Katala2013-12-08 14:51:34
B
34
S
9
G
3
Posts: 517
Reputation: 5,246

Post » Sun Dec 08, 2013 5:03 pm

I think having a Dictionnary with all ingame text, then load different values inside it depending on the language can be fine.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests