Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 03/11/2004 16:01:31

Title: Problems with scrolling bars
Post by: on Wed 03/11/2004 16:01:31
Sorry for my poor english (and this concludes the unuseful part of the message).

I've got a problem, in the Load and Save GUIs (created by myself) with the arrows (up and down) to scroll the saved games.
In the listbox, 3 saved games are visible, and when I click the down arrow (drawn on the gui) the game shows me the 3 next saved games. But when i arrive to the end of the list, clicking again, crashes the game.
I don't know how to forbid to a player to scroll down when the list of saved games reaches the end, or, better, to simply make the game do nothing, when this happens.

Please help me.
Title: Re: Problems with scrolling bars
Post by: Scummbuddy on Wed 03/11/2004 16:12:23
we'll need to see your code, because im assuming that its an error with your if statement or whatever function youre using, and you are going beyond your defined bounds.