*edited title name as I accidently put the wrong extension up ( i previously tried that extension, sorry)
So I have been reading every post on the I7 forums that has the word image in it to try and get a handle on this, but I am just not getting something. Here is the code pertaining to images:
Code:
Include the Basic Screen Effects by Emily Short.
Include the Glulx Entry Points by Emily Short.
Include the Glimmr Canvas-Based Drawing by Erik Temple.
Figure of intro is the file "intro.jpg".
Figure of greetingtalk is the file "greetingTalk.jpg".
Figure of greetingwave is the file "greetingWave.jpg".
The graphics-window is a graphics g-window spawned by the main-window. The position is g-placeabove. The measurement is 200. The back-colour is g-dark-grey.
The graphics-canvas is a g-canvas. The associated canvas of the graphics-window is the graphics-canvas.
The current image is a figure-name that varies. The current image is Figure of greetingwave.
To depict (f - a figure-name):
change the current image to f.
Carry out looking:
depict figure of intro;
continue the action.
When play begins:
open up the graphics-window;
depict Figure of greetingwave;
say, "Welcome..."
wait for any key;
clear the screen;
depict Figure of greetingtalk;
say, "Blah, blah, blah!"
wait for any key;
clear the screen;
continue the action.
No picture displays at all. I can get a picture to display by putting in:
Code:
The background image is Figure of greetingwave.
But it will not change the image.
So I tried changing:
Code:
To depict (f - a figure-name):
change the current image to f.
to:
Code:
To depict (f - a figure-name):
change the background image to f.
(since it seemed to at least understand and carry out the background image...)
That gives me a P31 error and still doesn't change the image.
If anyone could please help me out with this, I would be eternally grateful!
I know I am doing something wrong but I don't know what.