Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    2,522

    [SOLVED] Re: Moving object in the y-axis

    Glad you figured it out.
  2. Replies
    13
    Views
    2,522

    [SOLVED] Re: Moving object in the y-axis

    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...
  3. Replies
    13
    Views
    2,522

    [SOLVED] Re: Moving object in the y-axis

    Can't you post the source code necessary to compile and run the app to witness what is/isn't happening?
  4. Replies
    13
    Views
    2,522

    [SOLVED] Re: Moving object in the y-axis

    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...
  5. Replies
    13
    Views
    2,522

    [SOLVED] Re: Moving object in the y-axis

    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...
  6. Replies
    13
    Views
    2,522

    [SOLVED] Re: Moving object in the y-axis

    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.
Results 1 to 6 of 6