How can I show a variable's value on the status line (GUI)

Started by aventurero, Mon 28/12/2009 02:36:01

Previous topic - Next topic

aventurero

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?
Code: ags
function iToxicWaste_Talk()
{
Display ("You eat the toxic waste. Obviously, you die.");
QuitGame (0);}

suicidal pencil

make a GUI label, name it accordingly, and every cycle, update it

Code: ags

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

SMF spam blocked by CleanTalk