Hey guys, Simple Question, but for some stinking reason, I can't figure this out.
I am making a Math Quiz game, and need a timer. I have seperate levels, each changed by the click of a radio button.
What I want to do is, when the level is pressed, the timer should start, and end ticking in 6 seconds for easy, 4 seconds for medium, and 3 seconds for hard. After the timer is up, I want a message box saying So-and-so to pop up.
So, I know how to enable the timer and everything, but how do I code it so when the timer is up, call up a Message Box?
Oh, and if they answer the math problem correctly, the timer stops, and they get a message saying "Good job" and if they don't, "Oops, you didn't answer correctly" or, if the timer expires before they answer, "Too bad, times up!"
Can I have the code for this? For some reason I can't figure out how to do it... Thanks!
Question
Patrick_
Hey guys, Simple Question, but for some stinking reason, I can't figure this out.
I am making a Math Quiz game, and need a timer. I have seperate levels, each changed by the click of a radio button.
What I want to do is, when the level is pressed, the timer should start, and end ticking in 6 seconds for easy, 4 seconds for medium, and 3 seconds for hard. After the timer is up, I want a message box saying So-and-so to pop up.
So, I know how to enable the timer and everything, but how do I code it so when the timer is up, call up a Message Box?
Oh, and if they answer the math problem correctly, the timer stops, and they get a message saying "Good job" and if they don't, "Oops, you didn't answer correctly" or, if the timer expires before they answer, "Too bad, times up!"
Can I have the code for this? For some reason I can't figure out how to do it... Thanks!
Link to comment
Share on other sites
7 answers to this question
Recommended Posts