-
Notifications
You must be signed in to change notification settings - Fork 165
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
Transitional tiles #70
Comments
You first run an algorithm to make some 2's become 0 whenever there is a bridge at top or bottom:
or
Then just run the pathfinding algorithm normally to get the path. |
You can do this by using the Here's an example, the top is my grid, the bottom is my path, where step 0 is A, and step 1 is B etc. The path is only allowed a difference of 1, and no diagonals are allowed: |
I'm looking for a way to make transitional or "bridge" tiles, that could connect two other tile types.
I.e.
Imagine that 0 is terrain, 1 is stairs and 2 is a wall.
All tiles (0, 1, 2) should be acceptable, but in order to get from 0 to 2 or vice versa, 1 must be crossed.
I can't find a built-in feature to support this and the directional conditions are not exactly what I'm looking for.
Any suggestions?
The text was updated successfully, but these errors were encountered: