is there anyway to mimic the mouse hovering over a point or an actor. i tried using mousMoved but its a bit limited.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 | public void act() { if (Greenfoot.mouseMoved( this ) && info == null ) { info = new AttributeInfo(attribute, effect); getWorld().addObject(info, getWorld().getWidth() / 2 , 80 ); } else if (Greenfoot.mouseMoved( null ) && !Greenfoot.mouseMoved( this )) { getWorld().removeObject(info); info = null ; } } |