Set Score

From Fancade Wiki
Revision as of 04:30, 14 June 2025 by Osmo (talk | contribs) (Organized Notes section. Added Why does my score always contain .0? page from old wiki to notes)
Set Score
Set_Score.png
TypeScript block
ColliderNone
FolderGame
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

File:Set Score example.png

Touching the screen gives you 30 points.