R
RGiskardR
Guest
Hi everyone,
I hope you're all feeling good.
I'm tryng to develop a system to let the player change the language of the game. I don't have a lot of experience with GML so that's why I'm asking for your help.
My idea is something like:
Best regards.
I hope you're all feeling good.
I'm tryng to develop a system to let the player change the language of the game. I don't have a lot of experience with GML so that's why I'm asking for your help.
My idea is something like:
- Store all the texts on an external resource file, json format.
- Different files for each language.
- A Key - Value pair for each string.
- At the start of the game, load the selected's language file into a data structure (ds_map), a global variable?.
- Access de data structure by its key wherever a text is required (dialog, menu).
- If the player changes the selected language (a menu option) reload the file.
Best regards.