I am creating a game where an actor is going to touch an object that makes another object change from the transparency 100 to 255.
In my class that is supposed to change the transparency of another class I've written this method:
private void checkForGirl()
{
Girl girl = (Girl)getOneIntersectingObject(Girl.class);
if (girl != null)
{
GreenfootImage image = new GreenfootImage("brick_blue.png");
image.setTransparency(255);
}
}
This doesn't work, do I have to call for the Bluebrick class in some way?
