Search Unity

2D Tile problem

Discussion in '2D' started by Gorki12, Mar 18, 2018.

  1. Gorki12

    Gorki12

    Joined:
    Jul 12, 2015
    Posts:
    73
    Welcome I have a script which generates me ground but this sprite terrain is rotated through which during the generation of the terrain spawned holes arise as on the screen below.

    And I want it to be made as it is on this screen.


    How to do it?
     
  2. Gorki12

    Gorki12

    Joined:
    Jul 12, 2015
    Posts:
    73
    I upload ground sprite because I forget about it.
     

    Attached Files:

  3. PGJ

    PGJ

    Joined:
    Jan 21, 2014
    Posts:
    899
    You could use an adjustment factor that changes depending on if you are placing an odd or even row. If it is even, use an adjustment of zero. If it is odd, use an adjustment of half the size of your tile.