Skip to reading
Progress Bars, Hints & Journals

2. Add your first Progress Bar

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

1. Create a GUI named Machine Power with ID progress_lab.

2. Add a Progress Bar element. Set its ID to power_bar.

3. In General, give it enough room to read comfortably. The example uses X 40, Y 152, Width 1040 and Height 68 inside a 1120 × 660 window.

4. In Type Settings, set Maximum to 100 and Preview Value to 60.

5. In Text & Content, enter Power {percent}%. Use a centered alignment and a readable font size.

Figure 2. The designer shows a 60% sample before any gameplay logic is connected.

The large dimensions are only the example’s layout. A small HUD meter can be much narrower. Leave room for the longest caption and test at your game’s actual display size.

Preview Value is a design sample. It is not a live link to a variable and does not make the game start at that value when another runtime value is supplied.

Page 5 of 53Permalink
Go to page