Is there a minimum value for Delay?

Hi Prototype6143, and thank you for your answer!

Yes, I was afraid that it is related to ticks. I have already considered the solution you suggested, however that wouldn’t do what I need. I will specify my issue then and hope that someone can help me.

Basically when the Player gains let’s say 500 XP, I don’t want to simply give the amount to him, I want him to get +1 XP until all the 500 was given. I want to do this because I am displaying the amount of XP the Player has on the screen, and I want the number to go up one by one rather than just instantly add it.

My problem is that using the delay in the loop which increments the XP by 1 until reaches the amount of XP we actually want to give will only increment the number as many times as many frames you see, which is pretty slow and inefficent for adding like 5000 XP to the Player.

Any help regarding this would be appreciated.

[EDIT]

Okay, now I kinda realised that changing the XP between frames wouldn’t make a difference anyway, since the Player would still only see the value at screen refresh, achieving the same result as if we added more than 1 XP every time the loop runs.

Thanks for the help again!