Unity Cookbook
  • 2D
    • New Input System - 2D Move
    • Pixel Sprite Setup
    • Animations
    • Animator in Script
    • Tilemap
    • 2D Camera Follow Player
  • UI OnlyFans
    • 9-Splice Sprite
    • Interactible Game Objects
      • NPCs
      • Items
      • Interactible Marker
    • Dialogue System
      • Conversa Plugin
      • DiaManager.cs
      • DiaTrigger.cs
      • DiaManager.cs Alternate
      • Choices in Dialogue
    • New Input System - Interact
    • Designing the General Menu
    • New Input System - Open Menu
      • UI Buttons
      • GeneralMenu.cs
    • Controls Explanation UI
    • Items Menu
Powered by GitBook
On this page
  • Creating a Tileset
  • Creating a Rule Tileset
  • Creating an Animated Tileset
  1. 2D

Tilemap

PreviousAnimator in ScriptNext2D Camera Follow Player

Last updated 1 year ago

Creating a Tileset

After this, make sure to save the tiles to their own folder. It's gonna make a lot of files (one for each individual tile).

Creating a Rule Tileset

To make the rule tileset, you need to not do the last step in the previous section.

Drop the rule tile into the tile set. Then drag the sprites from the project folder into the inspect where the square says "Select."

An X is a hard edge. The Green arrow means it is continuous.

Creating an Animated Tileset

You'll need to create three different files in a different state of the animation.

For making an ice path, these are the specifics:

Yes, I'll have to make the colliders for the water not blocking sections by hand, but at least the player will be able to walk onto the water paths and the rule tiles can be used.

This is how to do it:

https://learn.unity.com/tutorial/using-rule-tiles#
Working File.
Working File for animated water.