AINE: Accelerated Interactive Narrator Engine
  • Download
  • References
  • Games
  • Wiki
  • Facebook Twitter
  • Name

    screenMessage()

  • Examples

    Player:
    {
    fatigue: 0
    time: 0

    Event: Enter_Room {
    // Displays a screen message when player is getting tired
    // If player is too tired to stay awake, forces "Sleep" to trigger

    fatigue++
    time++

    if (fatigue = 16)
    screenMessage("You are feeling tired...!")
    else if (fatigue > 20){
    trigger("Sleep")
    screenMessage("You collapse from fatigue")
    }
    }

    Event: "Sleep" {
    fatigue = 0
    time += 8
    }
    }
  • Description

    Displays the parsed text on the screen for the player to see. By default the text fades away after the player has had time to read the text. This time is calculated from the length of the text.

    You can parse a set time before the text should fade out. Parsed time should be in the form of seconds.

    At no time can more than 4 messages can be displayed on the screen at the same time. If 4 screen messages are already shown when screenMessage() is called, the oldest will be removed prematurely.
  • Syntax

    • screenMessage(text)
    • screenMessage(text,time)

  • Contact
  • Terms of Use
  • GitHub
  • Drakkashi.com

The copyright of all images rendered by me goes to their respective owners.
© 2008 Daniel Svejstrup Christensen