I think what he's trying to say is, He wants a few lines of code that will allow him to hover over an actor so that it displays the name of the character at a set location.
I think what he's trying to say is, He wants a few lines of code that will allow him to hover over an actor so that it displays the name of the character at a set location.
yeah but how the hell are we supposed to do that when we have no code? We dont even know the actors name
You could put something like this in your World subclass act method:
if (Greenfoot.mouseMoved(null))
{
Actor actor = Greenfoot.getMouseInfo().getActor();
if (actor == null) showText("", 80, 20); else showText(actor.toString(), 80, 20);
}