counting actors

hey guys, is there a way of counting if actors have been destroyed?? i.e if you start this 10 and only 3 cross the line i still want it to move to the next level. this one has me stumped thanks in advance :)

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited March 2014

    Hi @tom44410 That's very straightforward; make an integer attribute, let's call it Count, set its starting value to 10.

    In each of your actors' rules, add, just before the destroy behaviour,

    Change Attribute Count to Count-1

    And in an actor off-screen, in it's Rules, put:

        Rule: When Count = 3
        Timer: After 0.1 seconds
        Change Scene next scene
    

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • tom44410tom44410 Member Posts: 5

    thank you! ill try it

Sign In or Register to comment.