Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ghostlady on Sat 14/03/2009 17:05:57

Title: Scavenger hunt with a gui
Post by: Ghostlady on Sat 14/03/2009 17:05:57
I am thinking of doing a scavenger hunt in my game.  I will have a list of 10 items that the player will need to find.  I can easily do it with a room but I would like the player to call up the list whenever they wanted to.  I was wondering if this could be done with a Gui.  When the player first starts off, his list will contain all 10 items and then when he finds an item, the gui would pop up and that item would be scratched off.  Any ideas on how to do this?
Title: Re: Scavenger hunt with a gui
Post by: RickJ on Sat 14/03/2009 17:29:59
This can easily be done with a listbox GUI control.   The manual has a good example/explanation of how to use a listbox.   
Title: Re: Scavenger hunt with a gui
Post by: Khris on Sat 14/03/2009 17:33:25
For a graphically more appealing list view, use a GUI with 10 buttons and change their images (or draw the GUI background manually in-game before displaying it).
Title: Re: Scavenger hunt with a gui
Post by: Ghostlady on Sun 15/03/2009 01:43:50
So if I go the way of the gui, I should set a global variable and when the player clicks on th correct object, I would swap the images in the gui using code in the global script?
Title: Re: Scavenger hunt with a gui
Post by: Trent R on Sun 15/03/2009 02:31:03
GUIcontrols (which includes Buttons, Lists, Labels, etc) are available globally, so you can control them in the room script.
Their names should pop up on your AutoComplete.


~Trent