I need a simple 3 star ranking system for levels

hello, my game is actually nearly finished i have a level select screen with certain levels locked until a user completes the one before it however I am wanting to put in a 3 star ranking system for each level say you get over a score of 50 in that level then you get 3 stars, like angry birds. Is anyone able to give me any pointers on this?

bump

Its really not something that can be easily explained in a forum post.  There are a lot of dependencies on your code and how it’s structured to give you a concise answer.  There are people who sell level templates that do all of this for you.

In general you probably have a table or object that represents each level so you can add a sub-table that holds the scores for each of three stars.  You would need to check your score at the end of the level and if it’s a certain value save it into the right star’s slot.

bump

Its really not something that can be easily explained in a forum post.  There are a lot of dependencies on your code and how it’s structured to give you a concise answer.  There are people who sell level templates that do all of this for you.

In general you probably have a table or object that represents each level so you can add a sub-table that holds the scores for each of three stars.  You would need to check your score at the end of the level and if it’s a certain value save it into the right star’s slot.