Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Anarcho on Sat 01/05/2004 01:52:47

Title: pop-up image for look at hotspot
Post by: Anarcho on Sat 01/05/2004 01:52:47
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
Title: Re:pop-up image for look at hotspot
Post by: Ashen on Sat 01/05/2004 02:39:00
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.
Title: Re:pop-up image for look at hotspot
Post by: Anarcho on Sat 01/05/2004 02:54:09
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
Title: Re:pop-up image for look at hotspot
Post by: Alynn on Sat 01/05/2004 05:50:05
CreateGraphicOverlay would work as well. In fact, I suggest that more than a GUI. I'm not sure why though.....
Title: Re:pop-up image for look at hotspot
Post by: Ishmael on Sat 01/05/2004 10:42:32
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