GAH!! I feel like I am sooo close..
I have my GUI set to pause the game when its visible. So in the script you gave me I have it so
Code: ags
but for some reason its causing the interface to stay there and not process the inventory item. I also tried disabling the pause when gui is visible option and put in pause commands. This causes me to have to click on inventory items a couple of times before they process though :/ Ill mess with it more after I get home from work.
Edit 4/16/2011: I have also discovered that when i click on an inventory item or anywhere on the inventory box it un-pauses the game. Doing some research, it appears that I may have to mess with the On_Event function. But I am not completely sure, so any help is more than welcome!
Edit of the edit 4/17/2011: I finally figured it out. I needed to put all the inventory scripting aboveCode: ags
I have my GUI set to pause the game when its visible. So in the script you gave me I have it so
// inside on_mouse_click
else if (button == eMouseLeftInv) { // use inv item
player.ActiveInventory = inventory[game.inv_activated];
ProcessClick(click_x, click_y, eModeUseinv);
gINT.Visible = false;
}
else if (button == eMouseRightInv) { // look at item
inventory[game.inv_activated].RunInteraction(eModeLookat);
gINT.visible = false;
}
but for some reason its causing the interface to stay there and not process the inventory item. I also tried disabling the pause when gui is visible option and put in pause commands. This causes me to have to click on inventory items a couple of times before they process though :/ Ill mess with it more after I get home from work.
Edit 4/16/2011: I have also discovered that when i click on an inventory item or anywhere on the inventory box it un-pauses the game. Doing some research, it appears that I may have to mess with the On_Event function. But I am not completely sure, so any help is more than welcome!
Edit of the edit 4/17/2011: I finally figured it out. I needed to put all the inventory scripting above
if (IsGamePaused() == 1) {
// Game is paused, so do nothing (ie. don't allow mouse click)