I have three bits of code that make up the counter
This is in the background to allow access to the actor generating the points:
This is the code in the actor that generates and returns the points:
this is the code for the actor that is needed to make the background display the points as the other is removed to stop the points have been counted.
I know something is wrong with the code but I'm not sure what.
private Cover cover;
...
public Cover returnCover()
{
return cover;
}
boolean go = true;
int points = 0
...
if(go == false)#this is when the game has started
{
Background background = (Background) getWorld();
Background.newLine();
points++;
}
Cover cover2 = background.returnCover(); cover2.getPoints(); world.removeObjects(cover);

