Results 1 to 3 of 3
Thread: Timer function
- 11-25-2012, 12:07 PM #1
Member
- Join Date
- Nov 2012
- Posts
- 9
- Rep Power
- 0
Timer function
I'm acctually trying to make a game where, a user will get a timed number of outputs using Thread.sleep(slp);. Then, after that user will have to press a key and enter it. At an exact time he should be able to do that to win the game. I just need the code where user i can put an if function when timer is equall to the timelimit player wins. Is it possible with timer function?
-
Re: Timer function
Consider giving us more background on your problem. Is this a Swing application? Can you give us more detail about your code and your current problem as it's not very clear to me?
- 11-26-2012, 07:24 AM #3
Member
- Join Date
- Nov 2012
- Posts
- 9
- Rep Power
- 0
Re: Timer function
Okay, if this were played in irl. The game would be like this, I will say something "catch my finger, catch it if u can!". While I'm singing i'll be tapping my finger up and down against my friends palm and he is suppose to catch my finger at the end of the phrase.
So, if I were to make it into a java game I'll be saying a timed phrase, and the user is supposed to enter an input exactly at the end of the phrase ( lets say after 10 seconds).
Similar Threads
-
Recursive function to iteractive function
By mikeZet in forum New To JavaReplies: 0Last Post: 03-13-2012, 01:42 AM -
Calling function in Javascript- from other function
By jdigger in forum New To JavaReplies: 1Last Post: 02-27-2011, 09:00 PM -
Stopping a Timer from Inside the timer
By krishnan in forum Java AppletsReplies: 2Last Post: 10-04-2010, 11:15 PM -
Possible? Callback function passed as arguments to another function
By TreyAU21 in forum Advanced JavaReplies: 3Last Post: 12-04-2009, 03:08 PM -
How to cancel an individual timer in spite of canceling whole timer
By Java Tip in forum java.utilReplies: 0Last Post: 04-04-2008, 02:46 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks