[Tutor] Inventory problem
Alan Gauld
alan.gauld at yahoo.co.uk
Fri May 15 03:12:36 EDT 2020
On 15/05/2020 07:06, Boi0 wrote:
> I'm trying to make an RPG and I came across the issue of the inventory. I
> want the inventory to be opened by simply pressing i.
We need a bit more information. How does your RPG work?
Is it in a GUI or a text terminal? Or a web page?
Are you using a particular framework such as PyGame?
Or a particular GUI or web framework?
Also, when you say "simply pressing i" does that mean you want to
detect the keypress regardless of what else s happening in the
game and immediately present the inventory? Or is this within the
context of a menu or command line in which case it may involve
hitting "enter" too?
Finally, we need to know which OS you are using since these
kinds of operations are often platform specific.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list