Please login or register.

Login with username, password and session length
Advanced search  


Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Inventory open/close with the same key  (Read 2392 times)

0 Members and 1 Guest are viewing this topic.


  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • View Profile
Inventory open/close with the same key
« on: January 11, 2008, 09:50:49 PM »

Hello WMs,

I just try to design my inventory like a RPG and all looks fine. It should be open/close via the <TAB> key and it will working to open the inventory, but not close with the <TAB> key! Here is the piece of code (I stop here with the <BACK> key), where is in my game.script under - on "Keypress". Can someone tell me what I need to do?

Code: WME Script

I thank you in advance for your help.

A few minutes later... I have now changed and it seems to be working by my Rookie-Coding  :o

Code: WME Script
  1. else if(Keyboard.KeyCode==VK_TAB && Game.Interactive && !Game.ResponsesVisible && !WinMenu.Visible) Game.InventoryVisible = true;

I have here in this forum searched, but found nothing about my question above. That's why I posted it here. Hope, it is ok.

« Last Edit: January 11, 2008, 10:15:51 PM by Pixelschmied »

Page created in 0.027 seconds with 21 queries.