How can I add a score counter in my game. I want to use the counter sub class. Can anyone tell me a code using the counter sub class on how to add counter. I want it to add points when my enemies die.
Please explain which part you are having trouble with. I presume you have a Counter class in your scenario and you are trying to adjust its value from an Actor sub-class. If the class came with your Greenfoot download, then specify that; if not, show what code you are using for that class. Also, show what you have tried as far as getting the value to adjust from the Actor sub-class.