Set Score
Sets the score and/or coins.
Set Score
Type | Script block |
Collider | None |
Folder | Game |
Ports | |
---|---|
Inputs | Before Score Coins |
Outputs | After |
Settings
There is a setting that determines which score to consider as better one:
- Most Points: the more points the better
- Fewest Points: the less points the better
You also can provide time score, just make sure that the input is a total amount of seconds and you selected one of these options:
- Fastest Time: the faster the better
- Longest Time: the longer the better
Notes
- Setting a negative score removes the score.
- If the mode of the score is set to Most Points or Longest Time, the Lose block will act the same as the Win block (showing confetti and registering the level as complete).
- When there are multiple Set Scores with different comparisons for which is better, the new score is compared to your Personal Best by the comparison in the block that set it (e.g. Least Points). If it is better, the old personal best is completely discarded. Time in seconds is also compared to points.
- If the score contained a non-whole number, when later set to a whole number it will be displayed with a trailing 0.