I just started with greenfoot, and I'm getting the error "non-static method getX() cannot be accessed from a static context". How would I go about getting this value?
1 2 | //The following code will error. Xvel = MouseInfo.getX()* 0.1 ; |