I'm not going to mix topics, and I'm not interested in further debating it. Trying some stuff is not the same as going through the tutorial and asking a specific question (with an SSCCE). If you want...
Type: Posts; User: KevinWorkman
I'm not going to mix topics, and I'm not interested in further debating it. Trying some stuff is not the same as going through the tutorial and asking a specific question (with an SSCCE). If you want...
I believe the short answer to your question is that you have to add a breakpoint before you start debugging (that way the program knows where to stop so you can look at it step by step). The actual...
Yes, and I gave you some information in that thread, which you proceeded to ignore or argue with. You were given hints and links to tutorials- if you don't want to follow them then that's your...
I still really recommend you step through it with a debugger. That's all I'm doing. There's no magic to it.
But what's happening is that the first time you hit enter, you go through this if...
You're welcome (see, isn't that better than me just telling you?). But I really hope you understand why it works now. If not, I can try to explain it a little better.
Use whatever debugger comes with your IDE of choice.
And I can't "just tell you" because that wouldn't be helping. Actually, I pretty much HAVE told you. It's up to you to put the pieces together....
Hint: What is the difference between what these two pieces of code might do?
boolean something = true;
boolean somethingElse = false;
if(something){
somethingElse = true;
doFirstThing();...
What happens after that though? I highly recommend using a debugger. Or you could go the long route and put print statements in every single if statement.
Seriously, you're going to want to stop bumping your thread, for the reasons I already told you.
Take a look at the flow of the program in your key listener. More specifically, what happens when...
First off, I don't want to be annoying, but that's not an SSCCE. It's split up into multiple classes, most of which have nothing to do with the problem, and your Game class still contains way too...
SSCCE stands for Short, Self-Contained, Compilable Example. What you posted is none of them.
When you post code, it should be as short as possible while still showing the behavior, and we should...
You shouldn't bump your thread like that. It looks impatient- there are hundreds of posts here each with its own urgent user, and bumping your thread after only 20 minutes makes it look like you...