Set Score: Difference between revisions
-u ndefined- (talk | contribs) m (Use infobox, move and merge information to Notes, link blocks) |
(Organized Notes section. Added Why does my score always contain .0? page from old wiki to notes) |
||
Line 11: | Line 11: | ||
Sets the score and/or [[coins]]. | Sets the score and/or [[coins]]. | ||
== | == Settings == | ||
There is a setting that determines which score to consider as better one: | There is a setting that determines which score to consider as better one: | ||
Line 23: | Line 23: | ||
* Longest Time: the longer 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). | |||
If it is better, the old personal best is completely discarded. | * 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. | ||
Time 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. | |||
== Example == | == Example == |
Revision as of 04:30, 14 June 2025
Set Score
Type | Script block |
Collider | None |
Folder | Game |
Ports | |
---|---|
Inputs | Before Score Coins |
Outputs | After |
Sets the score and/or coins.
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.
Example
Touching the screen gives you 30 points.