Search Unity

Customize Sprite Stretching with 2 objects?

Discussion in '2D' started by FireJojoBoy, Jun 16, 2020.

  1. FireJojoBoy

    FireJojoBoy

    Joined:
    Oct 30, 2019
    Posts:
    65
    Hello, i have a big problem:

    i want to scale the tiles in my level to make it easy to make more levels. the problem is the the border gets thicker when i want to scale it:
    upload_2020-6-16_9-7-2.png upload_2020-6-16_9-7-21.png

    it would be verry great if someone could help me out ^^
     
  2. raarc

    raarc

    Joined:
    Jun 15, 2020
    Posts:
    535
    its not possible to do it like that

    you will need to use extra tiles with different sprites to build that shape

    2 extra tiles that you would need for example:

    upload_2020-6-16_9-7-2.png

    here is a tutorial of the correct technique

     
  3. spryx

    spryx

    Joined:
    Jul 23, 2013
    Posts:
    557
    You can use 9-slice spites. No reason to have all that extra artwork unless you need it. You will have to judge if this is the correct solution for you as only certain sprites look good with 9-slicing.