UFOLAB
  • WELCOME!
  • Getting Started
    • What is UFOLAB
    • How to create a game
      • From scratch
      • From template
    • Publish your game
  • Dashboard
  • Game editor
    • How to use the editor?
    • General Settings
    • Text
    • Multimedia
      • Audio
      • Video
      • Image
    • Components
      • Maze generator
      • Flashlight
      • Dialogue
      • Box
    • Library
      • Buttons
      • Text Boxes
      • Icons
      • Shapes
    • Minigames
      • Questions (Basic Puzzle)
      • Colors (Basic Puzzle)
      • Arrows (Basic Puzzle)
      • Shapes (Basic Puzzle)
      • Letters (Basic Puzzle)
      • Numbers (Basic Puzzle)
      • True or False (Basic Puzzle)
      • Scratch Image (Basic Puzzle)
      • Rings (Advanced Puzzle)
      • Fill the gaps (Advanced Puzzle)
      • Control Access Password (Advanced Puzzle)
      • Computer Access (Advanced Puzzle)
      • Phone Access (Advanced Puzzle)
      • Jigsaw (Advanced Puzzle)
      • Tic-Tac-Toe (Minigame)
      • Quiz (Minigame)
      • Swipe Time (Minigame)
      • Wordwheel (Minigame)
      • Timeline (Advanced Minigame)
      • Crossword (Advanced Minigame)
      • Memory Game (Advanced Minigame)
      • Einstein's Riddle (Advanced Minigame)
      • Quizz Run (Advanced Minigame)
    • Gamification Bar
  • TIPS and Advanced Features
    • Scorm
    • Text templating
    • How to create an actionable area
    • How to undo and redo?
    • How to resize the letters of a text?
    • How to preview our game?
    • How to place a logo along the project
    • How to clone and rename scenes?
    • How to delete multimedia files?
    • How to create a mobile game?
    • How to add background music
    • How to resize the elements
    • How to change the scenes order
    • How to move elements of the scene back and forth?
    • How to make the cover of your game?
    • How to change the canvas size?
    • What's the size limit for files?
    • How to zoom in, zoom out, and adjust the screen?
    • You need help?
  • FAQs
Powered by GitBook
On this page
  1. TIPS and Advanced Features

Text templating

PreviousScormNextHow to create an actionable area

Last updated 7 months ago

When you're using text, you can include information about the game using variables.

Here are un example: Fantastic! You have reached {{score}} points!!

The text is translated as soon as it's loaded when starting a new level. That means if you show {{score}} and after that the game assign more points, the text won't be updated.

Here is a list of the available variables:

  • {{score}} : Shows the current score

  • {{visitedLevels}} List of visited levels:

  • {{time}} Elapsed time in seconds since the countdown started

  • {{timeLeft}} Time left of the countdown in seconds

  • {{formattedTime}} Elapsed time in seconds since the countdown started in format hh:mm

  • {{formattedTimeLeft}} Time left of the countdown in seconds in format hh:mm