Change font for object text dynamically?

  • #1, by constantinThursday, 09. November, 16:53 2 weeks ago
    is there a way to change the font for object texts within the game? i need to use a special font in one scene for object texts and couldn´t find any solution. 

    Forum Fan

    110 Posts


  • #2, by sebastianThursday, 09. November, 16:55 2 weeks ago
    is there a way to change the font for object texts within the game? i need to use a special font in one scene for object texts and couldn´t find any solution. 

    since the latest RC2 version object text can now have a specific font in the display object text action part. Before lua was needed to change it temporarily. But it now should work as mentioned above.

    Thread Captain

    1926 Posts

  • #3, by constantinThursday, 09. November, 16:57 2 weeks ago
    please tell me how to do this in lua - i still use 4.2.5 

    Forum Fan

    110 Posts

  • #4, by sebastianThursday, 09. November, 16:59 2 weeks ago
    please tell me how to do this in lua - i still use 4.2.5 
    super old method:
    game:setValue(VGameObjectFont,"Fonts[myfontname]")
    1

    i recommend setting it back after your displayed the text (it gets not affected by that, only if you use display object text again for that object.)

    Thread Captain

    1926 Posts

  • #5, by constantinThursday, 09. November, 17:01 2 weeks ago
    thanks! i love superold methods.

    Forum Fan

    110 Posts

Write post