Glad you figured it out.
Type: Posts; User: GregBrannon
Glad you figured it out.
The answer to my question is, "No, you can't because of the non-standard API on which the program relies and I can't find."
It's interesting that in the moveForward() method, distX is initialized...
Can't you post the source code necessary to compile and run the app to witness what is/isn't happening?
And sorry that I didn't read Post #4 very carefully.
"Functions" in Java are called methods.
The makeTurn() method sets the car's rotation, then in the moveForward() method, the car's rotation...
I'm assuming you have a paintComponent() method somewhere that draws the car starting at some x, y coordinate. To move the car across the drawing area to the right, you increase the x-coordinate and...
Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.