The coin pickup is a representation of the good type of collider the character can interact with. It will be what the player collects in the game that they can use for currency. Perform the following steps:
To start with, navigate to the
Assets
folder, right-click on it, and select Create Folder. Name this folderPickup
.Open the
Pickup
folder, right-click on it, and select Import New Asset…. Navigate to theArt
files for this book, and open theChapterThree_Pickup
folder, and select thePickup_Coin.png
file to import.With the
Pickup_Coin.png
file imported, select it. Then, in the Inspector window, select Sprite Mode as Multiple.Then, select Filter Mode as Point.
Now, select Max Size as
256
.Then, select Format as Truecolor.
Finally, click on Apply.
Now, click on the Sprite Editor button to open Sprite Editor.
Then, click on the Slice button in Sprite Editor and select Type as Grid.
Now, select Pixel Size for both X and Y as
32
.Then, select Pivot as Top Left.
Now, click on...