Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: aventurero on Mon 28/12/2009 02:36:01

Title: How can I show a variable's value on the status line (GUI)
Post by: aventurero on Mon 28/12/2009 02:36:01
For example, I wanna put something like "you have X money" or simply "$X". Or make a game with a timer, and show the time you have left on the GUI. How can I do that?
Title: Re: How can I show a variable's value on the status line (GUI)
Post by: suicidal pencil on Mon 28/12/2009 04:04:53
make a GUI label, name it accordingly, and every cycle, update it


function repeatedly_execute()
{
  GuiLabel_Money.Text = String.Format("$%d", Cash);
}