message

Posted By: prog

message - 06/22/07 05:05

Can anyone pls help me, to generate questions dynamically while the game is running(i.e, as the game starts a question shud pop-up and the player has to enter the answer. And in the same panel after few seconds instead of 1st Question 2nd Question has to display...)
Posted By: tompo

Re: message - 06/22/07 08:28

Read manual and search forum for this. You are not first who's asking this

to show the message you need something like this:
string some_str = "Who are You?"
TEXT some_txt
{
POS_X 10;
POS_Y 610;
LAYER 5;
FONT standard_font; //or your own font
}

function show_text
{
some_txt.string = some_str;
some_txt.visible = ON;
}

- to make answers you may create buttons with text on it and if you click some buuton, then you'll call some action depend of what text was shown
- to make player able to write the answers read about key_for_str
- to store answers in some file you need file_str_write function
- and a lot of more functions you can find here or in manual, that could be usefull
© 2023 lite-C Forums