What did you say?

LordTarantorLordTarantor Member, PRO Posts: 890
edited November -1 in Working with GS (Mac)
I would like to have more than one language but how can I set this up. Like what rules I will have to create and where. I was thinking that the very first scene will have 2 buttons and you press english or spanish, I may ad German if I find a friend of mine. And once you press the button all the text from all the following scenes will be in the chosen language.
How can I do this???

Comments

  • LordTarantorLordTarantor Member, PRO Posts: 890
    Hey Poly can you help me with this one, I saw you did it in max vector.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I would have a game integer attribute (game.language) Then in your mind (or on paper so you don't forget) assign each language a number (english=0 , italian=1 etc.

    In the actors that have text have a rule for each language:

    Rule
    when game.language = 0
    change image to english.png
    OTHERWISE
    rule when game.language=1
    change image to italian.png
    OTHERWISE
    ...

    If you nest them in the OTHERWISE sections of the rule before it the game engine can stop checking the rule when it gets to the correct language (may help performance a bit)

    This will also work the same way if you are using display text instead of png files with text in the image. Just put the display text behavior and type in each language.
  • LordTarantorLordTarantor Member, PRO Posts: 890
    scitunes, one more time, you super rock...
Sign In or Register to comment.