Comments (12)
After reading some comments on other issues here... i am beginning to think this may not be feasible... so how do I fix my issue? Attaching a clipping of a portion of my tilemap, you can see that the slopes would require more than the 3x3 check... and then there is the grass on top... would two tileset-rules work for this?
from 2d-extras.
Sorry, but...what exactly are you trying to accomplish?
from 2d-extras.
ok... so in the picture example I provided, the way my current ruleset is, will not work. The best I have been able to manage is this...
If I want grass to be added to the top of the hills, I need a 5x5 grid here:
so that I can say if there are two tiles below me, but nothing directly above me... then I am a grass tile.
As it stands right now, I have not been able to add grass to the scene without the other tiles changing into something else.
The 5x5 grid would also help smooth out my tilemapcollision... right now, I am having to manually create a collision map after setting the tiles. But, mostly... I am wanting it so that I have the ability to use all of my tiles.
I hope that makes sense.
from 2d-extras.
Ohh. Yes, that does make sense.
It seems from your screenshots that each flat grass tile has a specific grass top that always goes with that tile. If that is indeed the case, then you could try merging the two tiles into one sprite with its y origin at 0.25 rather than 0.5--no idea if that's considered "bad practice," but hey, it's a feature that exists (and may or may not be bug-free), and frankly I'm not sure if Unity's Tilemap system has been around long enough to have established "bad practices."
(This is admittedly a proposed solution to your underlying problem and not your stated problem. Even if it does work for you, I really hate it when I find a thread that ends up doing that--so if you or any future readers find that you actually do need a 5x5 grid for some reason, I'm willing to help, although I'm not confident I could actually help with that.)
from 2d-extras.
@jmeyer1980 I have the exact same problem now, did you find a good solution?
from 2d-extras.
@frulica Like how exact? Like, trying to automatically add grass tiles above ones you place?
from 2d-extras.
I mean slopes that need 5x5 check, and also, ground levels that could use 5x5 check as well.
i can fix the ground issue with 2nd tile rule, but the slope issue remains or i have to make it 1 tile slope which just doesn't look as good.
from 2d-extras.
Yes, but why does the slope need a 5x5 check? Could you show me an example of what you want versus what you have?
from 2d-extras.
from 2d-extras.
from 2d-extras.
This feature is implemented by #140
from 2d-extras.
Well then. Don't know how I assumed this would never be added in, but obviously I was mistaken~
from 2d-extras.
Related Issues (20)
- Prefab brush is not showing or working both are error HOT 1
- Error message after install, package not loaded HOT 1
- GridInformationKey should implemented IEquatable<GridInformationKey> and override GetHashCode() to avoid GC alloc HOT 1
- 2D Game Kit errors HOT 5
- unity 2021 package missing files HOT 1
- GridInformation.cs error : The name 'HashCode' does not exist in the current context HOT 6
- Editor Warning On Creation: No script asset for RuleTile. HOT 4
- GameObject Brush paint incorrect position when Cell.Position.y < 0 HOT 2
- New transform of rule tile: rotate and mirror HOT 6
- 2021.1.22f1 HashCode Error HOT 2
- NullReferenceException when using Tile Palette HOT 3
- Gameobject-Tiles and Tile Palette Preview HOT 1
- Mixing Tiles HOT 3
- I have an error. HOT 1
- Error deleting RuleTile with GameObject during physics callback HOT 2
- RuleTile with sibling layer tilemaps? z-axis siblings? HOT 1
- PopulateRuleOverideTileWizard can't work right HOT 8
- Animated Tile Expansion
- Tilemap renderer cannot be refreshed after deletion HOT 2
- Request Special Rule Tile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 2d-extras.