Hi everybody. I need your help. ^^
I made a game with an object grid. When the user taps on an object, he destroys it. When this object disappears a new one replaces it.
So I need to create a new one using percentage. Because it's possible to have one from those four: wood, stone, gold, diamond.
I would the new one will be a wood one at 70%, stone at 24%, Gold at 5% and diamond at 1%.
But I don't know how to do it.
So I made this