Ceci est une ancienne révision du document !
Table des matières
Language / Langue : FR | EN
Graphical editor - Timers and HUD
Timers
Timers are set up in the inspector of a room (Events section, timer: action) or in the Globals panel (Global timers).
Fields of a timer:
| Field | Role |
|---|---|
nom | Unique identifier of the timer |
duree | Duration in seconds |
visible | Shows the countdown in the interface |
a_expiration | faire: actions run when the timer reaches zero |
tick | faire: actions run every second (optional) |
si | Start condition (optional) |
Actions on expiry and on tick use the same syntax as faire:: vers:room, modifier:var, declencher_event:id, and so on.
To start or stop a global timer from an event or a choice, use this action:
faire: - timer_global: timer_name state: ON # ON, OFF or SWITCH
A local timer cancels itself when the player leaves the room. A global timer is paused with OFF, which keeps the remaining time.
HUD (persistent panels)
The HUD displays permanent information on the player screen: hit points, score, a mini-map, and so on. It is configured through encadre: inside events.
Eight positions are available:
haut- top bandbas- bottom bandgauche- left edgedroite- right edgehaut-gauche,haut-droite- top cornersbas-gauche,bas-droite- bottom corners
Their English names work too: top, bottom, left, right, top-left, top-right, bottom-left, bottom-right.
Setting up a panel from the editor:
In the inspector, Events section, encadre: action:
| Field | Role |
|---|---|
position | One of the eight positions above |
texte | Contents, supporting v_name_v variables |
titre | Title of the panel (optional) |
splits | Splits it into side by side zones (2 for two columns) |
style | Visual theme (default, danger, info…) |
visible-si | Display condition |
The panel is refreshed every time the event defining it runs. For a live HUD, put the update inside a global event or inside a timer tick.
Find us on the Make&Play Discord
