Inventory without use of a mouse

Started by c53, Sun 08/05/2005 16:41:21

Previous topic - Next topic

c53

I'm not sure if this belongs in the BFAQ, but I thought it was kinda complicated, so I'm putting it here.
Ã,  Ã,  Alrighty then, what I'm trying to do is make a game that's like the 80's sierra style, with a textparser and everything. What I'm not sure how to do is make an inventory where each item (graphic or word, doesn't matter) is listed, and one is highlighted. The player can then toggle between the items he has using the arrows to see what he has, and when he presses enter on the selected item, that item will be examined and a description will pop up. To exit the inventory window the player either presses backspace, or esc. A good example of what I'm talking about would be like in peasent's quest.
http://homestarrunner.com/disk4of12.html
Thanks.
(P.S. - If it's not so much trouble, is there a way where if the player types in "fast" or "faster" that the speed of the character's walk will increase? And vise-versa for "slow". This would be greatly apprecieated, thank you)

Rui 'Trovatore' Pires

Re items - fiddle about with the GUI Listboxes and the use of keypress. Logic should get you going. If not, check out my template (read below) or wait until someone is kind enough to share code.

Re speed-change - sure. You can either stop the character and change his/her speed... or, if Anti-glide is on, you can change her/his ANIMATION speed - no need to stop him/her.

Incidently, you might be interested in my AGI template (AGS v2.7) -
http://12.22.230.41/MicroTech/Host/Files/SQ2.rar

...or in the AGI-graphics plugin.
http://12.22.230.41/MicroTech/Host/Files/ags_agi.rar
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

SMF spam blocked by CleanTalk