right now my score is drawn but only on the background. How would u make it draw on the actor that is in front and also resize what is being drawn? Right now i have this in my world :
and this is the part in the player class:
public void showScore(String message) { GreenfootImage bg = getBackground(); bg.setColor(Color.WHITE); Player dead = isPlayerDead(); if(dead!=null) bg.drawString(message, 365, 350); }
public void scoreMem() { SinglePlayer world1 = (SinglePlayer) getWorld(); String newMessage = "Player 1: " + totalScore; world1.showScore(newMessage); }