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

2014/11/25

How to count total number of Objects in World ?

immortalbikram immortalbikram

2014/11/25

#
Hi i am doing some assignment. I need to count the total number of objects which are seen in the world. For example My world has One actor subclass say "A.class" which is increasing and decreasing. I need to count the total no of "A.class" seen on the World.
immortalbikram immortalbikram

2014/11/25

#
I found out the solutions. It worked and its easy. It is written in A.Class int number= getWorld().numberOfObjects();
You need to login to post a reply.