Counting the number of specific actors

jfrancisjfrancis Member Posts: 57
edited November -1 in Working with GS (Mac)
Is there any way i can display the amount of specific actors? for example to display a text with the number of red blocks and another to count the number of blue blocks. it has to change overtime as in further levels blocks will spawn on touch.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    for the red blocks have a game attribute called redcount

    in the red actor have a change attribute behavior changing redcount to redcount+1

    so everytime one spawns it addes one to the attribute

    then have a display text behavior wherever displaying attribute red count

    then do the same for the blue blocks by having another attribute called blue count with the same rules
    cheers
Sign In or Register to comment.