hey.. i download this game : http://www.greenfoot.org/scenarios/4027 , and i change the tower graphic by some image that have transparant canvas/ background, but when i play, the background become black. Can some body help me?
public void setAsTower()
{
gesperrt = true;
//img.setColor(Color.BLACK);
//img.fill();
//setImage(img);
NodeCost = world.towercost;
F = direkterWeg + bisherigerWeg + world.towercost;
}
getImage().clear();
public TScreen()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(700, 400, 1);
}
public void act(){
if(Greenfoot.isKeyDown("enter"))
{
Greenfoot.setWorld(new world());
}started();