You might have to play this yourself to find out what I'm talking about, but whenever I crash my ship into an asteroid, and I select "Play Again", what the program does is makes it so that when I crash my ship again, the asteroid just moves off the ship, and nothing happens. I've been trying to fix this for two days. Could anyone help?
Last edited by Hissing Cockroach on Tue Dec 24, 2013 3:29 pm, edited 1 time in total.
There comes a time when one must use functions/classes not because he thinks he should, but because others wont read his code without them. If this was your first or second time posting code, it would be a different story. But by now you should be at least implementing them into your code slowly. The only function you use is the one i handed to you. At this point i dont want to help, because i know that your code is going to be one long massive while loop, with no functions or classes. I dont want to keep debugging this type of code. I am pretty sure others might agree as well.
I and others, have already told you numerous times that you cannot start 2d game programming without knowing functions and classes. You must know the basics first. And you do not.
I dont mean to be harsh. Once you understand the concept of functions and classes it will make your coding life a lot easier, and those around you that help you.
Honestly I have tried several times and yeah, I'm basically done. I have rewritten entire programs for you and offered to go through step by step in one of your programs until it was an acceptable structure.
You'll get no more help from me untill I see some actual effort (and no, doing more of the same does not qualify).