Author Topic: How can I show a variable's value on the status line (GUI)  (Read 482 times)

aventurero

  • Posts: 58
  • How appropiate. You fight like a cow.
    • I can help with play testing
    • I can help with story design
    • I can help with translating
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: Adventure Game Studio
  1. function iToxicWaste_Talk()
  2. {
  3. Display ("You eat the toxic waste. Obviously, you die.");
  4. QuitGame (0);}
  5.  

suicidal pencil

  • Posts: 157
  • The green-machine
    • I can help with animation
    • I can help with play testing
    • I can help with scripting
    • I can help with story design
    • I can help with web design
make a GUI label, name it accordingly, and every cycle, update it

Code: Adventure Game Studio
  1. function repeatedly_execute()
  2. {
  3.   GuiLabel_Money.Text = String.Format("$%d", Cash);
  4. }
  5.