I can not solve the problem with the discovery and preservation of stars.
For example, a player passes the first level and on it he can get up to 3 stars. There is no problem. I just think every selected star at the end of the layout, I give the message you have passed the level of 3 stars.
The problem is that there is a layout with a choice of levels. I open the levels (in the screenshot), that is, I have 1 box with 2 animations (closed or open) and I have a star (I copied it to 3x)
But how to light these stars, depending on how many stars the user has spared, I do not understand.
I can solve this problem by creating 100 global variables, but I understand that this is not correct.