"new GreenfootImage" is not an Actor object and, therefore, cannot be used as an argument for removeObject.
What are you trying to remove from the world? What class is this code in?
Thanks. I want to remove the text "Game Over" when the ball gets out of the board and then set my score back to 0. I tried to write it in the world class because my techer has told me so.
I want to remove the text "Game Over" when the ball gets out of the board and then set my score back to 0. I tried to write it in the world class because my techer has told me so.
I am a bit confused. Maybe you mean "show" and not "remove". I cannot see the ball and game over text being in the world at the same time (as what you wrote would suggest).
Yeah thats right. The ball is out of the world, than the Game Over text appears. But then it stays and you can keep on playing when you press space. But I want it to go away when you try again and set the score I mad back to 0. I hope its now a little less confusing