I dont know how to create character controling on the Tilemap. Charecter(Ship) should move only one tile per turn. I try to use CellToWorld function but I dont know how.
Instead of painting the ship on the tilemap, I would just make a new GameObject, attach a SpriteRenderer component, and set the Sprite parameter to your ship. Then you can add an easy movement script.
void Update()
{
if (Input.GetKeyDown(KeyCode.W))
{
transform.Translate(new Vector2(0, 1));
}
else if (Input.GetKeyDown(KeyCode.S))
{
transform.Translate(new Vector2(0, -1))
}
else if (Input.GetKeyDown(KeyCode.A))
{
transform.Translate(new Vector2(-1, 0));
}
else if (Input.GetKeyDown(KeyCode.D))
{
transform.Translate(new Vector2(1, 0));
}
}