| Author |
MouseEntered & MouseExited code seems not to be working...Problem fixed...by myself! :D
|
john price
Ranch Hand
Joined: Feb 24, 2011
Posts: 495
|
|
current listeners:
current code snippet:
The System.out.println code is working. The second thing (timer.stop() and timer.start()) doesn't seem to be.
This is a Pong game. This checks if the ball is in the starting position. If "timer" hasn't been started, it will be in this position. Likewise for mouseExited.
Thanks,
cc11rocks
EDIT: Figured it out...Just had to change code to || instead of &&.
Thanks.
|
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
|
 |
 |
|
|
subject: MouseEntered & MouseExited code seems not to be working...Problem fixed...by myself! :D
|
|
|