The ball stops, the game is lost!

feromanferoman 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

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Create a rule:

    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.
  • feromanferoman Member, PRO Posts: 130
    THANKS 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?
Sign In or Register to comment.