Hi, Giuseppe!
In regards to your first question, I think what you're looking to do is set up your program to save from a different frame than where you clicked the "Save Game" button. Is this correct?
If so, this is quite simple. On the Project Menu, click "Set Resume Locations..." (which is among the blue links on the bottom half of the tool box). Here, you can set the frame at which a player will resume the game when they save at a given frame.
Whatever changes you make to the inventory in the "project properties..." dialog will affect the inventory for the entire project. As for Action.HideMenu, that relates to the menu at the top of the screen.
While you can have the inventory hidden initially when the user goes to a page, if you have the "right click opens inventory" selected, then they will always be able to access it.
If you unselect this option (which I would recommend), there are two ways you can have the menu show up only when the user wants it, AND only on certain pages.
The first method is quite simple: When the inventory is set to "drop-down", all you have to do is use the "Action.HideInventoryButton" function on the frame properties of each page that you want it hidden on, and the "Action.ShowInventoryButton" function on the frame properties of the next frame after the frames that you want it hidden on.
The second method (and the one I prefer personally) is to set the inventory to "static" on the project properties panel (under Inventory). Then, you will use the following scripts on the Frame Properties, the same as you would use the previous functions.
To hide a static inventory:
- Code: Select all
InventoryCanvasObject.visible=false
InventoryBackgroundObject.visible=false
For Each x in inventoryobject
x.visible=false
Next
To show a static inventory:
- Code: Select all
InventoryBackgroundObject.visible=true
For Each x in inventoryobject
x.visible=true
Next
I'm sure there would be some way you could program ShadowHunter's "KeyGuard" plugin to do something similar with a right click, but as I'm only learning that lovely plugin myself, I doubt I'd be the best person to explain it at the moment.
I hope this helps. If you have any more questions, or if I misunderstood something, feel free to ask.