sto creando un giochino di ping pong,quindi ho creato 2 variabili per dividere i punteggi dei 2 player,il problema è che non so come fare ad impostare un punteggio massimo per la vittoria,per fermare il gioco.grazie
Set a third variable with the maximum score. At each increase in the score of the player variables you will compare them with the variable triad. When the value of one of the two player variables is equal to the value of the maximum score to reach variable, then the game ends.
Grazie per l’interessamento. Si avevo già provato ma sembrava non funzionare in quanto al restart sembrava già in gioco, ho risolto il problema era il tasto sinistro del mouse.