Unity 2018 Game Development in 24 Hours, Sams Teach Yourself by Mike Geig

Unity 2018 Game Development in 24 Hours, Sams Teach Yourself by Mike Geig

Author:Mike Geig [Geig, Mike]
Language: eng
Format: epub, mobi, azw3
Publisher: Pearson Education
Published: 2018-04-30T22:00:00+00:00


Creating Tiles

Once your sprites are prepared correctly, it is time to make some tiles. Doing so simply requires dragging the sprites onto the correct palette in the Tile Palette window and choosing where you’d like to save the resulting tiles. The original sprites remain where they are, unchanged. New tile assets are created that reference the original sprites.

TRY IT YOURSELF

Configuring Sprites and Creating Tiles

This exercise shows you how to configure your sprites and use them to make tiles. You will be using the project created earlier in this hour, so if you haven’t done the Try It Yourself “Creating Palettes,” go ahead and get caught up. If you’ve forgotten how to complete any of these steps, you can go back and review Hour 12. Be sure to save this scene because you will be using it more later in this hour. Follow these steps:

1. Open the scene you created in the Try It Yourself “Creating Palettes.” Create a new folder and name it Sprites. Locate the two sprites GrassPlatform_TileSet and Jungle_Tileset in the book files for this hour. Drag them into the newly created Sprites folder.

2. Select the GrassPlatform_Tileset sprite in the Project view and look at its properties in the Inspector view. Set Sprite Mode to Multiple and set Pixels per Unit to 64. Click Apply.

3. Open the Sprite Editor and click Slice in the upper-left corner. Set Type to Grid By Cell Size and set the X and Y Pixel Size properties to 64 (see Figure 13.7).

4. Click Slice and then click Apply. Then close the Sprite Editor window.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.