Hello EveryOne
How can i reuse mouseClicked() in the same code to do diffrent tasks?
This is my code:
What i need to do is:
use the mouseClicked() Method for both actions:
- Dont move the ball till it's clicked;
- Move the ball after it's clicked;
I already tried this but it's not working:
Thanks in advance