Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Candle on Thu 30/06/2005 01:38:02

Title: overhotspot question
Post by: Candle on Thu 30/06/2005 01:38:02
Say I have a newspaper and I want it when the mouse goes over the newspaper to say in text "Daily news" someplace by the paper .
Can that be done ?
Title: Re: I may have ask this already
Post by: Candle on Thu 30/06/2005 06:05:59
I guess I can do the @overhotspot@ but was looking for something a little nicer .
Title: Re: I may have ask this already
Post by: Gilbert on Thu 30/06/2005 06:20:27
You need to be more specific on what you really want, like in "but was looking for something a little nicer", what do you mean by nicer?
I think what you may need is to use a text overlay to display the text, and if you want you can even move the overlay when you move your cursor's position.
Title: Re: I may have ask this already
Post by: Candle on Thu 30/06/2005 06:35:06
I didn't think of that . I know how to do the overlay but how do I have it right where ther mouse would be when it moves over the object .
Title: Re: I may have ask this already
Post by: Gilbert on Thu 30/06/2005 07:14:56
After the overlay is created use MoveOverlay () to move ie, like for example:
MoveOverlay (overid, mouse.x, mouse.y);

Or if you use V2.7+ code:
Overlay.X=mouse.x;
Overlay.Y=mouse.y;



Title: Re: I may have ask this already
Post by: Candle on Thu 30/06/2005 07:45:07
Thanks for the help .. I understand :)