![]() Commit the sprite collection.Ĭlick on the 'Settings' button which will bring up the settings for this sprite collection, and make sure the sprite collection size is set to 20 pixels per meter, and change the collider depth to 10. ![]() In settings, make sure the sprite collection size is set to 20 pixels per meter, and change the collider depth to 10. Change the settings so they are the same as the screenshot below and then click on the 'Apply' button. Once the spritesheet has been dragged across, Config settings will become available. Click "Create > Sprite Sheet" in the sprite collection editor then drag the tiles_spritesheet from the Project window to the Sprite Sheet Texture box in the SpriteCollection window. Instead of using individual sprites, we will import a spritesheet. ![]() Open up the sprite collection editor and dock it. Note: These art assets are from the "Platformer Art Assets DELUXE" by Kenney.Ĭreate a sprite collection (Project > Create > tk2d > Sprite Collection), and call it "TileMapTutorial". ![]() Unzip the file and add the contents into your Unity project (from the Unity menu bar, select 'Assets > Import New Asset.' and select tiles_spreadsheet.png) Set up the camera size at 20 pixels per meter, set origin to center.ĭownload the tilemap sprites from here. Walkthrough Part 1 - Setting up PrerequisitesĬreate a new scene, delete the default camera and add a tk2dCamera. ![]()
0 Comments
Leave a Reply. |