panel with buttons and screen

Started by saanb, Sat 21/06/2003 13:22:46

Previous topic - Next topic

saanb

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?

Scavenger

#1
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.

Proskrito

look in the demo game, there is a panel like the one i think you are talking about

Dorcan

Or easier :
RawDrawImage (int x, int y, int slot)

saanb

well say i want the thing to start over, how can i take all the images off the screen?

Dorcan

If you used the RawDrawImage function :

RawClearScreen (int colour)

SMF spam blocked by CleanTalk