Hello, I'm wondering if you guys can help me. I've created a button that is supposed to hover when the mouse is moved over it. I have successfully done that but the rollover image flashes before returning to the non hover image
This is the code:
public class Start extends Actor
{
public void act()
{
hover();
}
public void hover()
{
if (Greenfoot.mouseMoved(this))
{
setImage("Start rollover.png");
}
else
{
{ setImage("Start.png"); }
}
}
}

