pop-up image for look at hotspot

Started by Anarcho, Sat 01/05/2004 01:52:47

Previous topic - Next topic

Anarcho

Here's a question, I would like a premade image to pop up when the player looks at a hotspot...in this case, when she looks at a piece of paper on a bulletin board, I want an image of the paper to pop up instead of a simple text message.  What would i do, an AnimateObject?  even if it's just a static image?

thanks,

Logan


Ashen

You could:

1. Turn on an object, if you have any unused.
2. Use a GUI.
3. Use RawDrawImage();

The GUI probably makes most sense, as you can allow the player to turn it off when they like (e.g. when they've read the note), rather than have it on a timer and switch off before they're ready.
I know what you're thinking ... Don't think that.

Anarcho

thanks for the suggestions.  I'll try working with the GUI, though i've always had trouble with that thing in the past.  Hopefully i'll be able to figure it out using the help files.

-Logan


Alynn

CreateGraphicOverlay would work as well. In fact, I suggest that more than a GUI. I'm not sure why though.....

Ishmael

#4
For one of my projects (has been on hold for ages, but I'm intending to work on it, as soon as I get motivation to continue with the graphic style) used the text windows to display closeups. Just use SetGUIBackground script command, and then Display... like:

SetGUIBackground(TXT,10); // if I remember the syntax right, check the manual, anyway, the 10 here is the closeup sprite number
Display("Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, [[[[["); // adjust number of spaces and linebreaks ([ breaks lines in text messages) to get the window to properly show the closeup
SetGUIBackground(TXT,0); // to set no bg, back to the original bg color, of, if you have a txtwindow background by default, use it's number instead
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk