Sliding GUIs (Problem with SetGUIPosition)

Started by Stickieee, Thu 28/08/2003 12:19:38

Previous topic - Next topic

Stickieee

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?
EXPLOSION

Ishmael

I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Stickieee

Using your GUI gives the same error message. Is this perhaps a version problem? I'm using 2.55.560
EXPLOSION

Ishmael

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..
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk