Scrolling Invetory

Started by Edward Becket, Sun 20/07/2003 13:04:35

Previous topic - Next topic

Edward Becket

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?
Excuse my english! I'm Italian! And not so good at school :-àž

TheDude

#1
I think something like this what you want:

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


Necro

#2
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.

Edward Becket

Thx i'm going to read your tutorial... ^_^
Excuse my english! I'm Italian! And not so good at school :-àž

SMF spam blocked by CleanTalk