I just created a simple gravity/momentum function, and just use a ball to test it. I would like to be able to click anywhere to move the ball to where I clicked, but I'm having trouble.
It's getting the mouse info(coordinates and click status). I know about this part of the API (http://www.greenfoot.org/files/javadoc/greenfoot/MouseInfo.html) but don't know how to use any of it.
Do I need to create public class MouseInfo to get the information?
If I do, I think I would then need to store the information in a public variable, which is still a matter I don't understand much.
Any help is greatly appreciated :D! Especially if I can figure out public variables!