Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Tycahal1991 on Sun 05/09/2010 16:26:05

Title: GUI_ to Load room ( diferent from loading game)
Post by: Tycahal1991 on Sun 05/09/2010 16:26:05
I want to know how to make a load room GUI, you see in the game I am developing you will have this gui to acess puzzles trough out the game in a practice like way, so lets say in the beggining of the game I wanted to have 2 loadable puzzles (rooms) but trough out the game you will add new puzzles to the load bars.

ok so the puzzles are musics (simmon like games) and you will learn new ones in the game; its very important to have this Gui so you can practice the musics.

note: I have searched this issue in the forum and didnt found answers I think this issue is very common in various types of games, I would apriciate help as my question may help others too.

thank you.  :)
Title: Re: GUI_ to Load room ( diferent from loading game)
Post by: GarageGothic on Sun 05/09/2010 18:12:47
Sure, just make a GUI with the buttons you need and then in each of the button scripts, put "player.ChangeRoom(X);" where you replace X with the room number that you want the button to send you to.
Title: Re: GUI_ to Load room ( diferent from loading game)
Post by: Tycahal1991 on Sun 05/09/2010 22:11:17
yes but how do I add in difrent "loads" in a certain part of the game? is it like a visibility check (true, false)? or is it difrent in GUIs. I think its done difrently. because it should be a load bar with 2 in the beggining and then as the game would progress i should be able to load more and more
Title: Re: GUI_ to Load room ( diferent from loading game)
Post by: GarageGothic on Sun 05/09/2010 22:26:28
Add more buttons to the GUI, and then use either the Button.Visible or Button.Enabled properties to hide/disable all except the first two (run this in the game_start() event). Then when you unlock a new level simply set Button.Visible or Enabled to true for the button corresponding to that level.
Title: Re: GUI_ to Load room ( diferent from loading game)
Post by: on Mon 06/09/2010 08:20:48
If you have a lot of rooms a listbox would be better, I think. Works just the same, but you can ADD entries.
Title: Re: GUI_ to Load room ( diferent from loading game)
Post by: GarageGothic on Mon 06/09/2010 10:48:02
Very true, Ghost. I was thinking of buttons with graphics, but if you just want a text list of the level numbers/names a ListBox is the better choice.
Title: Re: GUI_ to Load room ( diferent from loading game)
Post by: Tycahal1991 on Tue 07/09/2010 16:55:57
thanks for everything,it helped me alot.

is there a diference from a visiblity and enable caracteristics? if the visibility is false you still cant push the botton right? and the same with the disabled, you cant see it. if it has difrences post them here.