Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

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

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

  1. Aladine


    Jul 31, 2013

    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 ?