Hof to set up a digital display

  • #1, by marvelSunday, 30. April 2017, 00:02 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

    Key Killer

    599 Posts


  • #2, by sebastianSunday, 30. April 2017, 00:24 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 ?

    Thread Captain

    2346 Posts

  • #3, by afrlmeSunday, 30. April 2017, 01:09 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

    Imperator

    7285 Posts

  • #4, by marvelSunday, 30. April 2017, 13:56 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 :=)

    Key Killer

    599 Posts

  • #5, by afrlmeSunday, 30. April 2017, 14:03 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.

    Imperator

    7285 Posts

  • #6, by sebastianSunday, 30. April 2017, 15:12 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

    Thread Captain

    2346 Posts

  • #7, by afrlmeSunday, 30. April 2017, 16:43 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

    Imperator

    7285 Posts