Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 03/10/2005 20:26:20

Title: Text Box - Room Description
Post by: on Mon 03/10/2005 20:26:20
Hi,
Im fairly new to this AGS. Have done some research and got most of my problems fixed but I do have one simple question hopefully someone can answer or point me in the right direction. I want a text box to always show on each room. In this box I want a description of the room. How do I do this? Ive created a text box in the GUI section but I dont know how to assign text to it. I want this text to change everytime I enter a different room.
Thanks!
Title: Re: -=Text Boxes=-
Post by: Ishmael on Mon 03/10/2005 20:41:09
The simpliest way to construct it would be to make a label on some persistant GUI, and have in each room's Player Enters Room interaction the script something like:
RoomDescription.SetText("Room Description");

Replacing RoomDescription with the label object's script name.

Or you could create a room property which you set in each room to the description, and using the global on_event function get the room property text on new room load and change the label text according to.

Title: Re: -=Text Boxes=-
Post by: Ashen on Mon 03/10/2005 20:42:49
It's also worth noting that you actually need a Label, not a TextBox - TextBoxes are for taking text input, rather than displaying it. (If you're already using a Label object, and just said text box, ignore this.)
Title: Re: -=Text Boxes=-
Post by: on Mon 03/10/2005 21:44:34
alright..this is what i did before many times...now its working...
thanks again!! i know ill have many other questions later on  :D