The ball stops, the game is lost!
feroman
Member, PRO Posts: 130
In a pool game, when the ball ends its course, without going into a hole, the party must be lost.
How to do
I have attribute bolléen "Failed".
What condition to be attributed at my actor "Ball" order to the Boolean attribute put "Failed" to true.
Comments
When attribute self.Motion.Linear Velocity X is less than 3
And
When attribute self.Motion.Linear Velocity Y is less than 3
Change attribute game.Failed to true
This is changing the fail to true when the ball is almost do pledge stopped.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
I ask you another question:
I would like to attribute a score for the displacement and velocity of the ball.
Namely, the ball slows down gradually.
I have an attribute "integer" call "dragscore" initial score for 1500.
This score should decrease according to the speed and / or displacement of the ball.
How to do?