Letter for Mimi 2 – wip #10

Coloured text in Flixel

In the image above you can see coloured text in the dialogue, as many colours as you want can be implemented but for now there are only five (including white). Different colours can be used to indicate certain types of objects, such as items, people, events and places.

When entering the text in the *.xml file, you can specify a specific colour by having text between hash tags and a set of characters. For example, the code for blue is: #*blue text*#. When no colour is specified the default colour is used, which is white in this case. In the xml snippet below you can see what the unparsed text from the screenshot looks like.

<line id="2">
  <text>
    #%Kees:%# Can you try to bring this #*letter*# to #%prof. Mimi%#? 
    She lives in #@the village@#. You will need to pull the #$lever$# first to open the bridge!
    #$Green$# #@Orange@# #%Pink%#, #*Blue*#.
  </text>
</line>

Leave a comment

Your email address will not be published.