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

What is happening right now?


reply to how to add a score counter?

By danpost - about 4 hours ago
danpost wrote...
We will need to see the code for the Counter class (which is the blueprint for a Counter object) and the code to your world class (which should create and add a Counter object into the world).
You have only shown one of the two mentioned here. As far as the Counter class, it is a waste of cpu time to recreate the image of the Score object every act cycle when the score only changes once in a while. Change 'act' to 'updateImage' and do the following: <Code Omitted>

reply to Change anchor point of Actor

By NAMYA0303 - about 14 hours ago
can u explain it in a simple way Genora

reply to how to add a game over screen (my actor dies when touches the edge)

By NAMYA0303 - 1 day ago
thanks alot!!!!! u helped me with this game (: (: (; (; thnxxxxxxxxxxxxxxxxxx

reply to What code do I need to reload after 10 seconds?

By danpost - 1 day ago
Dudimus wrote...
how can I make my ammobar be full again (meaning the rectangle on the screen will look like full again)?
Apparently, you have two ammo fields -- one in the class of the ammo bar and the other in the class of the chased. It is almost never a good idea to have two fields for the same data.