Search Unity

Tile Map Is there a way to overwrite rules to solve some "conflicts" ?

Discussion in '2D Experimental Preview' started by Aladine, Jan 27, 2019.

  1. Aladine

    Aladine

    Joined:
    Jul 31, 2013
    Posts:
    138
    Hi,

    I want to create a tile-movement "visualizer" for a mobile game:


    The problem is that in some situations i get issues like this:


    the image above is supposed to look like this (made in photoshop):


    here is a screenshot of the tile rule:


    The problem is that there are cases where i want the "turn" to happen instead of the "straight line", i tried changing the "orders" of the rule, and make the turns only "care" about existing tile and not bother to check if the side that is supposed to be "empty" is indeed empty", but it still not working, from what i can see, here is a more "visual explanation":




    the only solution i could think of at the moment, is to have some sort of "queue" to determine the last tile, at the same time this feels very basic and i think there should be a "built in" way to do it, but i can't manage to find it.

    Any help please ?