2 Replies Latest reply on Jun 9, 2015 6:51 AM by Colin Holgate

    Combining language versions of a game

    molly12346

      Hi. I have made a game with Flash CS4. The game has five language versions and each of them is a separate file. What is the simpliest way to combine them into one file? The idea is that you can make a language selection in the first scene of the game. I tried importing swf files into a new project but that didn't work out. Is there an easy way to do this without having to hassle much with the different versions of the game?

        • 1. Re: Combining language versions of a game
          kglad Adobe Community Professional & MVP

          use dynamic textfields where ever you have text and assign the text based on language selected at the game's start.

           

          use one array for each language to store all the textfield text needed for that language.

          1 person found this helpful
          • 2. Re: Combining language versions of a game
            Colin Holgate MVP & Adobe Community Professional

            Here's a different approach, given that different languages may require significantly different layout in order to make the text fit nicely, not to mention that you may have different graphics that have text elements:

             

            You could put your whole app experience into a movieclip, that is set to be shared in the library. Instead of having everything already on the main timeline you would start the session like this:

             

            var mc:MovieClip = new EnglishVersion() as MovieClip;

            addChild(mc);

             

            That movieclip could be duplicated and shared for the other languages:

             

            var mc:MovieClip = new GermanVersion() as MovieClip;

            addChild(mc);

             

            In deciding which version to use you can either have an if or case statement, or you could use getDefinitionByName() to get the one that corresponds to the chosen language.

             

            If most of the elements in those movie clips are symbols themselves, and you have to do a change to part of the UI, a change in the English version will show up in all the other versions too.