Skip to reading
Text & Sierra-Style Adventures

33. Turn the same game into a graphical adventure

Edition 0.86.3.4

Build a complete text or graphical parser adventure with typed commands, inventory puzzles and press-to-walk controls.

Download PDFView PDF page

Create a GUI with ID graph_hud. It provides the status strip and command line while the room and player remain visible. Its command field must have ID graph_command.

Source table from 33. Turn the same game into a graphical adventure, page 36
ElementX, YWidth × heightContent / setting
Top Panel0, 01280 × 50Light background.
Title Label24, 4600 × 42THE LAST SIGNAL
Score Label862, 4390 × 42Score: $$ta_score of 10; right aligned.
Bottom Panel0, 6041280 × 116Dark background.
graph_command66, 6161188 × 51Single-line Text Box; native Enter options off.
Help Label24, 677820 × 32Arrows: walk / stop; Space: type.
Switch Button1000, 676254 × 34Show text-only game.

Set graph_hud to start hidden. The controller shows it when ta_text_mode is false. Set the project’s Main HUD system GUI to None so the template’s old verb buttons do not appear under your new command bar.

On both presentation-switch buttons, use an action list with Call Script Function → Switch Adventure Presentation. No parameter is needed. The function changes presentation without resetting the puzzle.

The text screen covers the room; it does not delete it. The controller disables player movement in text-only mode and enables it in graphical mode.

Page 36 of 68Permalink
Go to page