Here is my problem. I want to make a while() so my text flash every half second. Here is the code.
while(dbReturnKey() != 1)
{
dbCenterText(centerX, centerY, "Press ENTER to start...");
dbWait(500);
dbCLS();
dbWait(500);
}
It skips to the next part of my code when I press "ENTER", but when I press the Red "X" button to close the window it freezes and cannot get the program to close properly.
What I need to know is if there is a function for when you click on the "X".
For exemple : while(dbReturnKey() != 1 || !"FUNCTION FOR CLOSING THE WINDOW")
or
If you have another way of doing the flashing text thingy.
Thanks in advance!