Stop for many actors

chrisalchrisal Member Posts: 74
edited November -1 in Working with GS (Mac)
OK then here we go...

In my game I have 9 instances of the same actor, and would like to know when they have all come to stand still.

I was thinking of using a rule like

When
self.motion.linear x <9
self.motion.linear y <9
Change Attribute Game.BallsStopped = True

If I use a boolean will it change when they have all stopped or when the first actor stops.

Thanks

Comments

  • RHRH Member Posts: 1,079
    I'm not too sure but you could just use an integer so that

    When
    self.motion.linear x <9
    self.motion.linear y <9
    Change Attribute Game.BallsStopped to Game.BallsStopped+1

    And then When Game.BallsStopped=9 change attribute Game.AllStopped to true (have that as a boolean)
Sign In or Register to comment.