diff --git a/Semester 3/Assignments/MP2-chapter4_Java20_CalebFontenot/src/MP2_chapter4_CalebFontenot/BouncingBall.java b/Semester 3/Assignments/MP2-chapter4_Java20_CalebFontenot/src/MP2_chapter4_CalebFontenot/BouncingBall.java index 85be5ca..08a2858 100644 --- a/Semester 3/Assignments/MP2-chapter4_Java20_CalebFontenot/src/MP2_chapter4_CalebFontenot/BouncingBall.java +++ b/Semester 3/Assignments/MP2-chapter4_Java20_CalebFontenot/src/MP2_chapter4_CalebFontenot/BouncingBall.java @@ -158,7 +158,8 @@ public class BouncingBall extends Pane { public void moveRacket(double x) { moveEventLabel.setText("Move events: " + ++moveEvent); - racket.relocate(x, getHeight() - 20); + racket.setX(x); + //relocate(x, getHeight() - 20); } public void showInfoLabel() {