Yo guys,
Iam new with Greenfoot and Iam currently working on a project.
So the thing is, I want that my currently image changes when I hover it.
I have this:
When I compile it, it doesnt give errors.
But when i run it and hover the image, it says cant find "locatieRood.png"
Could you guys please help me?
Cheers,
public class Locatie extends Actor
{
private boolean onThis = false;
public void act()
{
if(Greenfoot.mouseMoved(null)){
onThis = Greenfoot.mouseMoved(this);
}
if(onThis) {
setImage("locatieZwart.png");
}
else {
setImage("locatieRood.png");
}
}
}

