Before we can begin with programming the coin collection gameplay, we need an actor in our game that will represent the coins. Let's create one now, using the now familiar Actor Type creation workflow that we established in the earlier chapters, by performing the following steps:
In the Dashboard tab, under RESOURCES, select Actor Types, and click on Create New.
Set the Name to
Coin
, and click on Create.Click on This Actor Type contains no animations. Click here to add an animation.
Change the Name of the animation from Animation 0 to
Default
.Ensure that Looping? is checked. It should be checked by default.
Click on the Click here to add a frame button.
Set Scale to 4x, and Resize Method to Bicubic if these are not already set by default.
Set Columns to
6
.Click on Choose Image..., then navigate to and select
Game Assets/Graphics/Actor Animations/gold coin anim.png
.Click on Add to import this 6-frame sprite-sheet into our Default animation.