Search:

Type: Posts; User: hellhunt

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    1,121

    Re: Help with bouncing on a panel

    If the ship touches the left side of the screen in another words if the location of the ship is negative in the x axis I want the ship to turn in the other direction (right). I did a System.out.print...
  2. Replies
    5
    Views
    1,121

    Re: Help with bouncing on a panel

    The method that controls movement is the translate method. For example if I put


    enemyship.translate(enemyship.getSpeed(), 0);

    The enemyships move to the right drawing him self 3 pixels to...
  3. Replies
    5
    Views
    1,121

    Help with bouncing on a panel

    Here I made a code that takes an object, in this case an enemy ship, and move it to the left. I want that object to bounce to the right when he touches the left side of the screen and bounce to the...
Results 1 to 3 of 3