Text Box - Room Description

Started by Dragonisle, Mon 03/10/2005 20:26:20

Previous topic - Next topic

Dragonisle

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!

Ishmael

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.

I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Ashen

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.)
I know what you're thinking ... Don't think that.

Dragonisle

alright..this is what i did before many times...now its working...
thanks again!! i know ill have many other questions later on  :D

SMF spam blocked by CleanTalk