Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: saanb on Sat 21/06/2003 13:22:46

Title: panel with buttons and screen
Post by: saanb on Sat 21/06/2003 13:22:46
Hi, i want to make a panel with buttons and when you press certain buttons, the screen displays something else. Is there any other way besides making tons of different rooms where the screen is displaying something else? I thought of making the screen lots of objects and making that keep going off and on but is there an easier way?
Title: Re:panel with buttons and screen
Post by: Scavenger on Sat 21/06/2003 14:06:27
Nope, don't do what I said last. Do this:

Have the screen picture you want to change set as a button, and make each of the buttons that change the screen have this command:
SetButtonPic(whatever)

Just read the Text Scripting Manual for more information.
Title: Re:panel with buttons and screen
Post by: Proskrito on Sat 21/06/2003 14:16:20
look in the demo game, there is a panel like the one i think you are talking about
Title: Re:panel with buttons and screen
Post by: Dorcan on Sat 21/06/2003 14:16:30
Or easier :
RawDrawImage (int x, int y, int slot)
Title: Re:panel with buttons and screen
Post by: saanb on Mon 23/06/2003 10:13:10
well say i want the thing to start over, how can i take all the images off the screen?
Title: Re:panel with buttons and screen
Post by: Dorcan on Mon 23/06/2003 15:50:09
If you used the RawDrawImage function :

RawClearScreen (int colour)