How to hide the Inventory Icon after picking something up

This forum is meant for people to share their knowledge by writing their own tutorials for Adventure Maker.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

How to hide the Inventory Icon after picking something up

Postby Lyberodoggy » Fri Feb 22, 2008 6:29 pm

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
Attachments
inventory icon.rar
(106.99 KiB) Downloaded 357 times
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby Chromegloss55 » Tue Feb 26, 2008 8:01 pm

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
Last edited by Chromegloss55 on Tue Feb 24, 2009 3:12 pm, edited 1 time in total.
Chromegloss55
Forum Master
 
Posts: 630
Joined: Sat Nov 03, 2007 2:49 pm
Location: God Knows!

Postby Lyberodoggy » Tue Feb 26, 2008 8:14 pm

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...
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby Chromegloss55 » Tue Feb 26, 2008 8:15 pm

Oh... gotcha...

Still... not harm to mention it.
_________________
schrom marijuana
Last edited by Chromegloss55 on Tue Feb 24, 2009 3:12 pm, edited 1 time in total.
Chromegloss55
Forum Master
 
Posts: 630
Joined: Sat Nov 03, 2007 2:49 pm
Location: God Knows!

Postby Lyberodoggy » Tue Feb 26, 2008 8:19 pm

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
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Post Your Own Tutorials

Who is online

Users browsing this forum: No registered users and 0 guests

cron