I have a score variable and a function in _process()
in my AutoLoad that checks every frame if the score has reached a certain value, and if so, it checks off the appropriate milestone flag. This is the function:
func milestone_check():
if milestones["score_10000"] == false and score >= 10000:
milestones["score_10000"] = true
if milestones["score_20000"] == false and score >= 20000:
milestones["score_20000"] = true
etc...
The score in this game increases only when you click on enemies. Considering that I'm planning to add way more score milestones in the future, I'm not sure if this is the best approach for this sort of problem, but I don't really know what I should change (and if anything at all, since it's just a bunch of if-checks still). I want to make sure that this function is readable enough and doesn't slow the game down once I add more features.