Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Invalid on Thu 09/07/2009 22:41:15

Title: Displaying a global variable on a gui
Post by: Invalid on Thu 09/07/2009 22:41:15
Just to tell you, I am NOT a noob, but this question is big for me. I looked through the manual and could not find a direct answer so somebody tell me. What command should I use to show a global variable on a gui? the variable will be changing constantly. Also, somebody tell me where to put the funtion also. thanks
Title: Re: Displaying a global variable on a gui
Post by: Matti on Thu 09/07/2009 22:47:16
Create a label and then write a line like this whenever the variable changes or just in the rep-ex:

Labelname.Text = String.Format("%d", Variablename);

Just put in the right label- and the variable name.
Title: Re: Displaying a global variable on a gui
Post by: Invalid on Thu 09/07/2009 22:50:28
thanks, works fine