Win based on score

alexxxhpalexxxhp Member Posts: 161
edited November -1 in Tech Support
How can I set the end to choose base on the score for example 2 players are playing against each other with seperate scores when the timer reaches the end I want the game to choose the winner based on the score they got

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    Create two game attributes, called Player1Score and Player2Score. Make them both integers.

    During the game, when either player scores, add 1 to the appropriate score.

    When the timer ends, create a rule that says:

    When game.player1Score > game.player2Score
    Player 1 Wins!

    When game.player2Score > game.player1Score
    Player 2 Wins!

    When game.player2Score = game.player1Score
    Tie Score!

    Hope this helps!
  • alexxxhpalexxxhp Member Posts: 161
    thanks it does
Sign In or Register to comment.