Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Seventeen Uncles on Wed 15/10/2014 12:05:50

Title: GUI appear when mouse is at top of screen, not working.
Post by: Seventeen Uncles on Wed 15/10/2014 12:05:50
making a simple GUI from scratch, inventory bar appear when mouse is at the top of the screen, but it doesnt seem to work.

when I set it to 'always on' or 'normal, initially on' it displays perfectly, and the inventory items display correctly, but setting it to 'When mouse moves to top of screen' doesnt seem to work (at all.)

is there anything else I need to put in the global script for this to work correctly?

many thanks

Title: Re: GUI appear when mouse is at top of screen, not working.
Post by: Crimson Wizard on Wed 15/10/2014 12:23:41
Did you set up "PopupYPos" properly? It is Y coordinate at which the mouse will trigger GUI.
"0" - does not popup;
"1" - the very top of the screen;
try to find coordinate that is convenient for player (so that it won't prevent them to click on room hotspots).
Title: Re: GUI appear when mouse is at top of screen, not working.
Post by: Seventeen Uncles on Wed 15/10/2014 12:40:53
Quote from: Crimson Wizard on Wed 15/10/2014 12:23:41
Did you set up "PopupYPos" properly? It is Y coordinate at which the mouse will trigger GUI.
"0" - does not popup;
"1" - the very top of the screen;
try to find coordinate that is convenient for player (so that it won't prevent them to click on room hotspots).

worked a treat, i was confusing the popupYpos with the actual position of the bar

thanks very much for your help