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

2011/11/3

Code for a counter!!!

ChrisEthridge ChrisEthridge

2011/11/3

#
For my intro to programming class we have to create a counter to keep track of the score. I would like it to add 1 to the scoreboard if a bullet hits and asteroid. Ive tried (add(1)) just to see what it does, and it adds continously. Can anybody help??
ez4u2c ez4u2c

2011/11/3

#
Take a look at this tutorial which does exactly what you are describing. http://www.greenfoot.org/doc/howto-1
You need to login to post a reply.