Page 1 of 1

How to hide the Inventory Icon after picking something up

PostPosted: Fri Feb 22, 2008 6:29 pm
by Lyberodoggy
Sometimes you may think that this Inventory Icon is hiding some of the beautifull graphics you 've designed. So there is a way to make it disappear :P ...
Write this piece of code in the hotspot which gives you the item
Code: Select all
Action.CreateTimedEvent 3,"Action.HideInventoryButton"

where 3 can be replaced with any number of choice (any number under 3 is not recommended).
If you want the player to have access to his inventory again in another frame just type:
Code: Select all
Action.ShowInventoryButton

in the Advanced tab of the frame

PostPosted: Tue Feb 26, 2008 8:01 pm
by Chromegloss55
Or you can simply use this code to add the item without it popping up:

Code: Select all
Action.AddItem "Name Of Item", True

_________________
Business Credit Forum

PostPosted: Tue Feb 26, 2008 8:14 pm
by Lyberodoggy
I didn't want to stop the inventory from popping up... I just didn't want the inventory button to be visible all the time :P...

PostPosted: Tue Feb 26, 2008 8:15 pm
by Chromegloss55
Oh... gotcha...

Still... not harm to mention it.
_________________
schrom marijuana

PostPosted: Tue Feb 26, 2008 8:19 pm
by Lyberodoggy
I did mention it... I wrote
Sometimes you may think that this Inventory Icon is hiding some of the beautifull graphics you 've designed. So there is a way to make it disappear ...

Sorry I didn't make myself clear, but with a closer look to the code, you could see that I was trying to hide the Inventory Button :P