Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Edward Becket on Sun 20/07/2003 13:04:35

Title: Scrolling Invetory
Post by: Edward Becket on Sun 20/07/2003 13:04:35
I made a GUI placed in the bottom of the screen where I put the status bar and the inventory.
The latter is constituted only by a long sqared shape where are visualized the objects icons on orizontal way. But if the player thake too many objects... how can i place a scrolling for the inventory? I would put 2 buttons at the left and right margin of the inventory so that you can scroll it oin right or left. Is it possible? If not, what can i do then?
Title: Re:Scrolling Invetory
Post by: TheDude on Sun 20/07/2003 14:34:15
I think something like this what you want:

http://www.amazing-ebooks.co.uk/ags/tutorials/tut5.html

Title: Re:Scrolling Invetory
Post by: Necro on Sun 20/07/2003 18:46:28
Wow my tut is getting used already and I only put it up the otherday.. I did today though have to make a minor correction in the code, so if you copied the code and wondered why it isnt working try it now, but it wasnt a biggy you may have resolved the problem yourself.

Indeed it is possible to do more or less anything with a gui if you know script and sometimes its easier than you think , the code for scrolling an inventory left is only 3-4 lines of code!

EDIT: Oh I also added my copy of the game directory in which I coded the GUI you you can d/l and go through the code yourself.
Title: Re:Scrolling Invetory
Post by: Edward Becket on Mon 21/07/2003 09:53:36
Thx i'm going to read your tutorial... ^_^