Ok thanks for the help !!
Just update the game with all i request...
-Make score transparent
-Switch level by score
-Make some chasers shoot
or just tell me where and how to change it.
Thanks again
public void adjustScore(int adjustment)
{
score += adjustment; // adjust score
// adjust score display
GreenfootImage bg = getBackground();
bg.setColor(Color.white);
bg.fillRect(684, 15, 100, 30);
bg.setColor(Color.black);
bg.setFont(new Font("SERIF", Font.BOLD, 28));
bg.setColor(Color.black);
bg.drawString(""+score, 684, 40);
}
private void setAction(int action)
{
removeObjects(getObjects(Chaser.class)); // remove old chasers
actionType = action%5; // set bound action
int[] distances = { 0, 0, -10, 0, -15 }; // bound ranges
actionDistance = distances[actionType]; // the range for this action
String[] texts = { "UNBOUND", "LIMIT", "REMOVAL", "WRAPPING", "BOUNCE" }; // the bounds text
// adjust bounds display
GreenfootImage bg = getBackground();
bg.setFont(new Font("SERIF", Font.BOLD, 36));
bg.setColor(Color.black);
bg.fillRect(350, 0, 200, 50);
bg.setColor(Color.gray);
bg.drawString(texts[actionType], 350, 44);
// reset score
score = 0;
// ensure player is in world
if (chased.getWorld() == null) addObject(chased, 400, 300);
}new Color(0, 0, 0, 0);
Laser l = new Laser(); getWorld().addObject(l, getX(), getY()); l.setRotation(getRotation());
// with the following fields: private GreenfootImage scoreTextArea; private GreenfootImage edgeTextArea; // in the constructor: scoreTextArea = new GreenfootImage(100, 30); scoreTextArea.drawImage(getBackground(), -684, -15); edgeTextArea = new GreenfootImage(200, 50); edgeTextArea.drawImage(getBackground(), -350, 0); // now you can replace lines 6 through 7 above with: bg.drawImage(scoreTextArea, 684, 15); // and replace lines 24 through 25 with bg.drawImage(edgeTextArea, 350, 0);