Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Shadow on Mon 19/04/2004 19:26:20

Title: displaying variables
Post by: Shadow on Mon 19/04/2004 19:26:20
Is there a way to display variables not as speech? I mean only as text like a console. Because with DisplaySpeechBackground I can't display variables and the normal DisplaySpeech is not good because the game stops.
Title: Re:displaying variables
Post by: strazer on Mon 19/04/2004 19:47:54
QuoteDisplaySpeechBackground I can't display variables

What do you mean?

string buffer;
StrCopy(buffer,"Hello world.");
DisplaySpeechBackground(EGO,buffer);

works for me.
You can display numbers with

int numba=47;
string buffer;
StrFormat(buffer,"The number is %d",numba);
DisplaySpeechBackground(EGO,buffer);
Title: Re:displaying variables
Post by: Kweepa on Mon 19/04/2004 19:54:57
You probably want to create a GUI with a label, and then in repeatedly_execute_always, use SetLabelText to update the GUI.
Title: Re:displaying variables
Post by: Shadow on Tue 20/04/2004 15:08:42
hey, cool. thank you guys  ;D