Report this content
We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.
Note that misuse of the reporting tool will not be tolerated.Item being reported:
This is achievable with variables, although it will only compare the user's best time (not other players) and they will lose the data if they reset progress for the Dream.
To set it up, you could take the output of whatever you're using for the time/score and connect into the 'A' input for a < Calculator. Connect the output of a 'Persist in Dream' Variable into the 'B' input for the same calculator. Maybe call the Variable 'best time'. What Calculator will do, is produce a signal when the current time is less than the best time. If you need a higher score to be better, then use a > Calculator instead.
Next, connect your current time/score output into the Operation Value for a Variable Modifier (this is the same time/score input which connects to calc 'A'). Make the Variable Modifier reference the 'best time' Variable. The Variable Modifier should also be configured to 'Set' and 'When Powered On'. Now take an AND gate and connect it to the power port for the Variable Modifier. Take a wire from the calculator 'Result' output and connect it to the AND gate.
Finally, you probably already have some logic to indicate when the level is finished, for example when you're sending a signal to a Score Gadget to post to the Scoreboard. Ideally, this should be a pulse. Just take the output of this logic and connect it to the other port for the AND gate.
Hopefully this will work. This is the general concept of how I got a score saving system working for a Dream I made previously. Although, with logic it's easier for me to test while playing, so I can't guarantee I haven't missed out anything in the text here!