Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

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

0 Members and 1 Guest are viewing this topic.

Pixelschmied

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • View Profile
    • www.seelentanz.com
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;
  2.  

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 »
Logged
 

Page created in 0.039 seconds with 21 queries.