Creating the character

The character will be our representation of what the player is controlling. You can think of it as the "hero" or positive visual character, something the player can identify with their input actions.

  1. To begin with, open Unity and create a new folder in the Project window in the Assets folder:
    Creating the character
  2. Name it Character.
  3. In this folder, right-click and select Import New Asset…:
    Creating the character
  4. Navigate to the Art folder for this book. You will find a subfolder called CharacterThree_Character.
  5. Open it. In this folder, there is a file named Character_Sheet.png.
  6. Select this file and then click on Open to import the asset into Unity.

This will import the default running sprite sheet that will be used for our character.

Tip

http://opengameart.org/ is a website designed to offer 2D artwork under the creative commons license. If you want to find the art that you can use, manipulate, and distribute freely, this site can be very useful.

  1. Once you have Character_Sheet.png in the Assets folder, select it. Then, in the Inspector tab, you will see the settings for the PNG file.
  2. Select Sprite Mode as Multiple.
  3. Select Filter Mode as Point.
  4. Select Max Size as 1024.
  5. Select Format as Truecolor:
    Creating the character
  6. Then, click on Apply.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset