I have been working on a game where you need to go through levels and defeat enemies in the shortest time possible. I created a variable that increases by 0.01 every 0.01 seconds to show your time spent in that run in seconds, but the problem is that after about 200 seconds the variable will look like this 200.99999999999 which is a problem because I want to show more than just seconds. I have seen Construct 3 do the same with small numbers before, but I can't remember the details. Can anyone please tell me if there is a solution to this issue?
You can round the number every time you add 0.01
Set var to (round(var*100)+1)/100
Thank you very much. I will try this.
You can round the number every time you add 0.01 Set var to (round(var*100)+1)/100
Please can you look at these photos? This started at 214 second.
That's not the right formula.
Use "Set value" instead of "Add value" and my formula from the previous comment.
Develop games in your browser. Powerful, performant & highly capable.
Thanks you again. I tried that and it now works normally.