Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Sewer Agent on Tue 15/02/2005 09:20:04

Title: GUI Mouse Over.
Post by: Sewer Agent on Tue 15/02/2005 09:20:04
I have just made a GUI that is meant to pop up at the bottom of the screen when I move my mouse over it (YPos=185.) but it is always turned on and when I move my mouse down it disappears!? If I could have some help on this I would be very grateful.

Thanks.
Title: Re: GUI Mouse Over.
Post by: Radiant on Tue 15/02/2005 11:09:05
In your repeatedly_execute, put something like this:

if (mouse.y > 185) GUIOn (your_gui_here);
else GUIOff (your_gui_here);
Title: Re: GUI Mouse Over.
Post by: Sewer Agent on Tue 15/02/2005 12:58:29
I've tried that but it still does the same thing?!
Title: Re: GUI Mouse Over.
Post by: Scorpiorus on Tue 15/02/2005 18:34:16
Can you then post the whole repeatedly_execute function here?
Title: Re: GUI Mouse Over.
Post by: TerranRich on Tue 15/02/2005 19:11:01
Erm, I don't believe Popup GUIs can be brought up by moving the mouse BELOW a certain Y-coordinate. It's only meant for moving the mouse ABOVE a certain Y-coordinate, hence its permanent appearance. This is also why when you bring your mouse DOWN below that coordinate, it disappears. It's the way it works. Instead, make the GUI Popup modal (with no Y-pos set) and use only Radiant's code.
Title: Re: GUI Mouse Over.
Post by: Sewer Agent on Fri 18/02/2005 16:15:57
Thanks terran.

P.S
I didn't know you were a WWE fan. Batista kicks arse!