Hof to set up a digital display

  • #1, z marvelSunday, 30. April 2017, 00:02 hodinky 8 years ago
    Hey guys,
    I have some kind of "digital display", showing the room temperature which can be set. How would you set it up? Maybe as a background text... or is there a better way? smile

    Best,
    Marvel

    Zabiják klíčů

    599 Posts


  • #2, z sebastianSunday, 30. April 2017, 00:24 hodinky 8 years ago
    is the digital display inside a normal room in which a character could walk in front of or is it some kind of extra scene ?

    Kapitán

    2346 Posts

  • #3, z afrlmeSunday, 30. April 2017, 01:09 hodinky 8 years ago
    Object text or narration text would only work if the character won't be walking in front of it as text is always printed on top of everything else. If you need the text to be hidden behind the character at certain points then I would recommend using a couple of animations with 10 frames each containing numbers 0 through 9 & use Lua script to force which frame is shown.

    Display object text would be simplest solution linked to a value if text is a valid method because you can have it reflect the value with the <v=value_name> inside of the display object text & you would be able to increase/decrease the value with action parts as well - no Lua script required at all. smile

    Imperátor

    7285 Posts

  • #4, z marvelSunday, 30. April 2017, 13:56 hodinky 8 years ago
    is the digital display inside a normal room in which a character could walk in front of or is it some kind of extra scene ?

    It's an extra scene - a close up :=)

    Zabiják klíčů

    599 Posts

  • #5, z afrlmeSunday, 30. April 2017, 14:03 hodinky 8 years ago
    Use a value & a display object text then. wink

    You need to update the display object text each time you increase or decrease the value though. It's better than using background narration or display text though as you would need to create a loop for those to update the value & remain displayed on the screen.

    Imperátor

    7285 Posts

  • #6, z sebastianSunday, 30. April 2017, 15:12 hodinky 8 years ago
    you can use an Execute script action part before to use a different font for this display:
    game:setValue(VGameObjectFont,"Fonts[font_name]")

    don't forget to set it back to default if you have it used in other places as well wink

    Kapitán

    2346 Posts

  • #7, z afrlmeSunday, 30. April 2017, 16:43 hodinky 8 years ago
    you can use an Execute script action part before to use a different font for this display:
    game:setValue(VGameObjectFont,"Fonts[font_name]")

    don't forget to set it back to default if you have it used in other places as well wink
    Going retro with the setValue I see. grin

    Imperátor

    7285 Posts