When destroying 4balls time wont stop!
Hey there ppls,
I making a simple game just to get the hang of it. The objective is that to destroy 4 balls before the time ends. My problem is that when you acomplish destroying the 4 balls you win but my time keeps runing and when it reaches 0 it says YOU LOSE. How do I apply that rule or attribute in my game. So when I destroy the 4 balls the timer stops.
Please Help
EXLC
Thank you
I making a simple game just to get the hang of it. The objective is that to destroy 4 balls before the time ends. My problem is that when you acomplish destroying the 4 balls you win but my time keeps runing and when it reaches 0 it says YOU LOSE. How do I apply that rule or attribute in my game. So when I destroy the 4 balls the timer stops.
Please Help
EXLC
Thank you
Comments
Hi @EXLC,
Make an integer att., call it Count. Make another attribute, a boolean, let's call it Run.
So assuming you want this timer to start the moment you enter the scene, set Run to true.
Rule: When Run is true
Timer rules run to completion unchecked
Now in each of the ball actors, add, just before the Destroy behaviour,
Change Attribute Count to Count+1
When Count = 4
Change Attribute Run to false