When completing a level, you need to save the player’progress.
By default, the player has variable fields: name, avatar, score.
But we need to add number of attempts number of attempts.
Go to the panel and find the Models section, then go to the player setting.
Next, add a new field, and mark it as Stats — now this field is numeric.
In the game, we will refer to the field by key.
In our example the key is attempts.
Add a translation to it.
Mark this field as important so that the player can orient towards it when choosing which progress to save, if it will be necessary.
Now, go back to the Construct. After completing the level, add +1 attempt (1),
compare, if accumulated points beat the previous ones (2),
then we will save the scored ones (3) and synchronize with the server (4).