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?


1 2 3 4 5 6 7 8 9 | public void setAsTower() { gesperrt = true ; //img.setColor(Color.BLACK); //img.fill(); //setImage(img); NodeCost = world.towercost; F = direkterWeg + bisherigerWeg + world.towercost; } |
1 | getImage().clear(); |
1 2 3 4 5 6 7 8 9 10 | 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()); } |
1 | started(); |