Identifying how many actors are currently within a location

Can someone point me in the right direction.
I am trying to determine when a number of actors have been put together with another actor.... for example eggs collected and put into a basket... when meets a certain number in the basket the game finishes or something else happens. Or a number of actors stacked together on a table actor meets the requirement something happens.

Comments

  • GLGAMESGLGAMES SingaporeMember Posts: 988
    Have an integer attribute let's say collectedeggs
    so every time the egg collides or overlaps with basket, change attribute collectedeggs to collectedeggs +1, so have this value check with the target no. of eggs you should collect once it is equal to the no. then game finishes.
  • finzfinz Member Posts: 1
    understand that, but how would you deal with if an egg gets dislodged from the basket? and you collect it again... Thanks for you help.
Sign In or Register to comment.