- Home /
Delay in displaying message on screen
Hi everyone, In my game i want to display a message of congratulations when a certain number of people are saved. In my update I trigger a flag when the condition becomes true:
if(peopleSaved == 3) {
g1_1 = true;
}
Then in my OnGUI function I check whether the flag is true and display a message. For example:
if(g1_1) {
GUI.Label(new Rect(130,20,115,30), "Congratualations!", myGUIStyle);
}
The problem is there is a delay between when the condition becomes true and when the message is displayed. Its a small delay, but a delay nonetheless. Shouldn't the message come up instantaneously? How do I get it such that it is? Thanks in advance.
Comment
You are right there should be no perceivable delay. Not sure we have enough code to help - probably need to understand where the first section fits.
Your answer
