Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: markhep_1 on Thu 25/03/2010 21:18:38

Title: help on text box please
Post by: markhep_1 on Thu 25/03/2010 21:18:38
hi in my game i have some money. I have made a global variable called cash and i have a texbox1. In the text box i want it to show the amount of cash and keep showing it when it goes up and down what do i have to type to get this
Title: Re: help on text box please
Post by: tzachs on Thu 25/03/2010 21:50:01
In your global script, inside the repeatedly_execute function, put:

textbox1.Text = String.Format("%d", Cash);
Title: Re: help on text box please
Post by: markhep_1 on Thu 25/03/2010 22:19:58
its simple when you no how .Thanks mate sweet