Inform 7 Home Page / Documentation


§23.6. Displaying the figures

Inform's basic picture support simply allows figures to be shown at particular times. Once seen, they scroll away, just as text does once it has been printed. These pictures are really part of the stream of narrative. (If we would like icons or other images to be permanently present on screen, and divide the screen up in pictorial ways to achieve interesting layouts, we need to use special extensions to access Glulx's more exotic features.)

Displaying a picture is therefore like printing some text. Rather than

say "The woodlands stretch from here to the horizon.";

we would use:

display (figure name)

This phrase causes the figure to be displayed in a way visible to the player. If the option "one time only" is used, it will have no effect if the figure has been displayed before. Example:

display the Figure of Woodlands;

Once again, note that the "display" phrase does nothing unless the Settings for the project are set to the Glulx story file format. When a Glulx work is released as a blorb (the default setting for the way releases occur: see the chapter on Publishing), all the images used are automatically included.


arrow-up.png Start of Chapter 23: Figures, Sounds and Files
arrow-left.png Back to §23.5. Declaring and previewing the figures
arrow-right.png Onward to §23.7. Recorded sounds