Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 31/08/2003 20:10:15

Title: Sentance Line
Post by: on Sun 31/08/2003 20:10:15
I'm wanting to put a sentance line thats shows a brief descripton of the hotspot/object that the cursor is over like in the curse of monkey island. Any ideas?
Title: Re:Sentance Line
Post by: Ishmael on Sun 31/08/2003 20:23:30
You mean like "A wooden chair" show somewhere on the screen, and when you move the cursor from the chair to a table it says "A sturdy looking table"? That can be done using SetLabelText, just making a labe big enough to fit the sentance in, then just in the hotspot interactions, in "Mouse over hotspot" select run script and put SetLabelText(SENTLINE,0,"Description here"); in there, where replace the SENTLINE with the GUI's name, and the 0 with the labels object number, and put the description in place of the "Description here"... I think it goes that easy. ;)