A while loop "crashing"/freezing my game

You should avoid equality comparisons between floats due to floating precision.
Your text “298.7503” probably won’t be represented as that when running.

You should rather use “>” or “<” when checking such bounds.

More info here

1 Like