Daily progress: Using the prefab brush to paint collectible diamonds in the map.
So now we are actually able to purchase a diamond, now we’ll give the player the ability to collect diamonds to actually make the purchase. Later we’ll give the player an option to receive 100 diamonds for watching a Unity ad, but for now, we’ll make the player work for it!
First, we’ll go into tiles, create 2D Extras/Brushes/Tile Brush, once created, rename it to Diamond_Brush.
In the prefab slot, we’ll put the Diamond prefab we created a few articles ago:
Next, we open our tile manager window if we don’t have it already, and from there, we can select the diamond brush:
Now that the diamond brush is selected, now we can select the brush tool and start painting collectible diamonds into our map!
Awesome! Let’s see if the player can collect them!
Superb! We have collectible diamonds, a shop to spend them in, it’s all coming together!