Giter Club home page Giter Club logo

Comments (12)

jmeyer1980 avatar jmeyer1980 commented on July 27, 2024

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?

tilemap

from 2d-extras.

Koopa1018 avatar Koopa1018 commented on July 27, 2024

Sorry, but...what exactly are you trying to accomplish?

from 2d-extras.

jmeyer1980 avatar jmeyer1980 commented on July 27, 2024

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...
image

If I want grass to be added to the top of the hills, I need a 5x5 grid here:

image
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.

Koopa1018 avatar Koopa1018 commented on July 27, 2024

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.

frulica avatar frulica commented on July 27, 2024

@jmeyer1980 I have the exact same problem now, did you find a good solution?

from 2d-extras.

Koopa1018 avatar Koopa1018 commented on July 27, 2024

@frulica Like how exact? Like, trying to automatically add grass tiles above ones you place?

from 2d-extras.

frulica avatar frulica commented on July 27, 2024

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.

Koopa1018 avatar Koopa1018 commented on July 27, 2024

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.

jmeyer1980 avatar jmeyer1980 commented on July 27, 2024

from 2d-extras.

Koopa1018 avatar Koopa1018 commented on July 27, 2024

from 2d-extras.

johnsoncodehk avatar johnsoncodehk commented on July 27, 2024

This feature is implemented by #140

from 2d-extras.

Koopa1018 avatar Koopa1018 commented on July 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.