aspose file tools*
The moose likes Applets and the fly likes Problem with game applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Problem with game applet" Watch "Problem with game applet" New topic
Author

Problem with game applet

Topias Martikainen
Greenhorn

Joined: Nov 13, 2012
Posts: 2
I have been trying to do a simple reaction game applet.. I have been trying for hours to make "aika" increasing when you press ENTER but I havent figured it out!
So I would like to get some help for this issue.. Sorry for being such a "noob" and I thank beforehand.


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
if (frozen = false)

You're missing a very important character here. I didn't look at the rest of the code, so there may be other issues.


Ping & DNS - updated with new look and Ping home screen widget
Topias Martikainen
Greenhorn

Joined: Nov 13, 2012
Posts: 2
Ulf Dittmer wrote:
if (frozen = false)

You're missing a very important character here. I didn't look at the rest of the code, so there may be other issues.


Oh! but thats not the problem..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
You should also get in the habit of using @Override annotations. You've got another typo that would have been caught by that.

Also, sleeping for 1 millisecond is too short. Sleep at least for 50 or 100.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with game applet
 
Similar Threads
why can't I access my variable?
Double Buffering help!
Dx Ball Game
repaint() won't call paint() and I'm out of ideas why
Restart game button?