Need help for score counting app

Sorry for my english, I use Google Trad

Hi, I need help with something that seemed simple to me, but is ultimately giving me a hard time.

I think there are many here who will have the right method, thank you in advance.

I would like to create a score counting application, on a screen I add the players as well as the target score to achieve.

Then, we switch to the counting screen. I need for each player to create a card with their name and several buttons.

The buttons are:
+5, +10, +15, +20, +25
-5, -10, -15, -20, -25

You also need an additional button which will be used to validate the score.

Example: the score to reach is 100 points, player 1 obtains +5, +25 and +20. Total 50 points, validate with the button next to your name.

Then, player 1 plays again and gets +25, +25, +25, total 75 points, validate with the button. But the total of the previous round + this one is 125 points, so we have exceeded the target score, it must return to the previous score of 50 points.

What I have already managed to do:

  • Add players
  • Create cards and buttons for each player
  • For each player, the score buttons work

This part is probably not optimized, but functional.

It remains to make the target score which I cannot save and return to the old score if we exceed it.

Thank you all for your help !
ScoreCounter(3).aia (70.1 KB)

The game for which I want to make a point counter is this one : How to Play Ring Toss | Ring Toss Game Rules - Elakai Outdoor

But with the difference that, at each turn of the game, we must validate the points, and if the score exceeds the set target, then the player falls back to the score of the round before.

Hi, Sorry to raise my request again, but can someone help me? If possible, give me an example aia to manage scores for each player on the list? Thanks for your help

Not able to get your Point of view… Add some pics to the post.