Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Stickieee on Thu 28/08/2003 12:19:38

Title: Sliding GUIs (Problem with SetGUIPosition)
Post by: Stickieee on Thu 28/08/2003 12:19:38
I've been trying to make a sliding GUI similar to that in Apprentice, and managed to do one using the SetGUIPosition function.

However, I can only make the GUI to slide from bottom to top (on the bottom of the screen) but I can't do a GUI sliding from the top of the screen downwards.  It says "SetGUIPosition: co-ordinates must lie in range (0,0) - (RMWID, RMHIT)" when I'm trying to set GUI to y-level -30 or so. (As explained in http://www.amazing-ebooks.co.uk/ags/tutorials/tut5-2.php )

So, is there another way to do this? Should CJ remove the co-ordinate restriction?
Title: Re:Sliding GUIs (Problem with SetGUIPosition)
Post by: Ishmael on Thu 28/08/2003 19:52:16
see my sliding GUI template for some help...

Template zipped (http://kotisivu.mtv3.fi/tk/TKsGUI.zip)
Short introduction to the GUI (http://kotisivu.mtv3.fi/tk/slidingbars.htm)
Title: Re:Sliding GUIs (Problem with SetGUIPosition)
Post by: Stickieee on Sat 30/08/2003 09:16:41
Using your GUI gives the same error message. Is this perhaps a version problem? I'm using 2.55.560
Title: Re:Sliding GUIs (Problem with SetGUIPosition)
Post by: Ishmael on Sat 30/08/2003 09:48:10
I made it with 2.55... What res you use? The message you get means that you're trying to put the GUI outside of the screen.... my GUI codes give the error if you use 320x200, beacuse it's made for 320x240... so you need to change the 239's to 199's and so on in the GUI scripts for INVBAR and MODEBAR contols... meaning take 40 off them, the if (invy<239) and so on.     And I noticed that the templateing messed the sprite order a bit... so I'll need to fix the button graphichs..