Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule Tile Rotation? #15

Closed
mikecann opened this issue Dec 24, 2017 · 4 comments
Closed

Rule Tile Rotation? #15

mikecann opened this issue Dec 24, 2017 · 4 comments

Comments

@mikecann
Copy link

Firstly, great work with this. I once spent a long time doing this myself, good to see somone has done this and done it much better than I ever could have :)

So my question, I must be missing something but how do you specify that the provided sprite should be rotated on a rule?

image

For example in the above image note the pink area, I would like the selected sprite to be correctly rotated.

Changing the rule seems to alter the wrong one:

image

Any ideas?

@ChuanXin-Unity
Copy link
Collaborator

The setup below could help you in this case?

rotatedruletile

@mikecann
Copy link
Author

Ahh I see so you only need one tiling rule for two configurations if you use the "Rotated" Rule?

@ChuanXin-Unity
Copy link
Collaborator

For this case, yes. The rule matches the tile on the left when rotated at 90 degrees and matches the tile on the right in the normal case.

This is also the same for your case in the second picture. For the tile on the left, it matches the first rule exactly. For the tile on the right, it matches the first rule when rotated at 90 degrees with the Rotated rule, so it would look as it did. As both tiles were matched with the first rule, the second rule you set there did not take effect. The yellow lines for the Sprite then will match the transformation set in the first rule, which is vertically orientated to the top and bottom (or left to right in the 90 degrees case).

@mikecann
Copy link
Author

Awesome, thanks for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants