Help with the high score (low score) code

I am making a reaction time game and I am having a bit of trouble with the high score (low score) mechanism.


This was my code that worked for high score but when I switch the variables around in the check once if block, it stops working

Help me please

10 Likes

Hello, Welcome to the fourm!

Feel free to introduce yourself.

Tag me for anything like, @I_Cant_Code.

2 Likes

What is it displaying?

5 Likes

It may be because the high score is automatically 0 when you start the project? (can’t go lower)

6 Likes

If you want to do a “lowest score” system, you’ll first need to initially set high score to a very large number like 1e10 (or a number that’s impossible to get to in no more than several days). This is so there’s something for the score to be potentially less than…

All game variables are set to 0 by default, like SLS said.

Welcome to the forum, btw

4 Likes

Thank you, that is the problem

4 Likes

Welcome to the forum @benpapp

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.