Stop for many actors
chrisal
Member Posts: 74
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
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
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)