This site requires JavaScript, please enable it in your browser!
Greenfoot back
SWAG
SWAG wrote ...

2013/4/20

Score Counter

SWAG SWAG

2013/4/20

#
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.
danpost danpost

2013/4/20

#
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.
You need to login to post a reply.