I’ve downloaded and, I believe, successfully integrated Glimmr Canvas-Based Drawing. However, no images appear during gameplay. Instead, I get a black background. I’ve been tinkering with this for about two hours, and still no success. As it stands, here’s my code:
[code]The portrait-window is a graphics g-window. The main-window spawns the portrait-window. The position of the portrait-window is g-placeright. The scale method of the portrait-window is g-fixed-size. The measurement of the portrait-window is 300.
The portrait-canvas is a g-canvas. The associated canvas of the portrait-window is the portrait-canvas. The canvas-width of the portrait-canvas is 300. The canvas-height of the portrait-canvas is 600.
A portrait-sprite is a kind of a sprite. The associated canvas of a portrait-sprite is the portrait-canvas. The display-layer of a portrait-sprite is 2. The display status of a portrait-sprite is g-active. A portrait-sprite has a number called the associated portrait. The origin of a portrait-sprite is { 150, 300 }.
Some portrait-sprites are defined by the Table of Portrait Elements.
Figure of Mary is the file “Mary.png”.
Table of Portrait Elements
image-ID associated portrait sprite
Figure of Mary 20 Mary[/code]
Any idea what I’m doing wrong? I’ve troubleshot in the IDE, Gargoyle, and Glulxe.
Additionally, when I get past the intro (just as the command prompt appears), I get an error. This is the only code I’ve added since successfully running the game. The error reads:
[**Programming error: tried to read outside memory usage -> **]