(Formerly known as CreateGraphicOverlay, which is now obsolete)
static Overlay* Overlay.CreateGraphical(int x, int y, int slot, bool transparent)
Creates a screen overlay containing a copy of the image from SLOT in
the Sprite Manager. The image is placed at (X,Y) on the screen (these are
screen co-ordinates, not room co-ordinates).
If transparent is true then the overlay will be drawn in the
same way as characters/objects, if it is false
then a black rectangle will be painted behind the sprite.
See the description of Overlay.CreateTextual for more on overlays.
Example:
Overlay* myOverlay = Overlay.CreateGraphical(100, 100, 300, true);
Wait(40);
myOverlay.Remove();
will create an overlay of the image stored in sprite manager's slot 300, at the
coordinates 100,100. It will display for 1 second, then remove it.
See Also: Overlay.CreateTextual,
Overlay.Remove
|