Code Monkey home page Code Monkey logo

Comments (3)

Seanba avatar Seanba commented on August 16, 2024

Hi Zachary, sorry for the late reply. I have been purposely avoiding
properties on separate tiles because I've been concerned about the O(N^2)
complexity of 2D maps. I see people with 256x256 tiles wondering why there
is a collection of 65 thousand properties in their exported maps ... if you
know what I mean.

But something like this has been a commonly requested feature so I need to
think about how I can deliver on it.

In the meantime, I suggest you look into Tiled's Automapping feature. You
could set up rules in Tiled that take certain tiles from one layer and
automatically generate tiles (or even objects) in another layer for you. I
use the automapping stuff a lot for something like that. I commonly only
draw in one layer in Tiled and have the automapping functionality create
everything else for me.

Best,
Seanba

On Sun, May 3, 2015 at 5:52 PM, Zachary White [email protected]
wrote:

Currently, looks like properties (unity:layer, unity:tag, etc) are only
grabbed for actual tile/object layers. I'm currently trying to build our
game in such a way that we can do item/enemy placement entirely from within
Tiled, but having so many layers becomes cumbersome.

Would be really cool if I could just tag my individual tiles with the
unity:tag property (ie: unity:tag = coinSpawner, enemySpawner, etc), and
then paint them into a single layer

Not sure if this functionality exists already, and I'm just missing the
obvious, but if not, this would be a fantastic feature to have!


Reply to this email directly or view it on GitHub
#4.

from tiled2unity.

saltybrackets avatar saltybrackets commented on August 16, 2024

Ah! Yeah, after some working around with it, Automap does seem to be a pretty good workaround.

Just wanted to note, when I said "individual tiles," that was probably a bit vague; I didn't actually mean every single tile in the map itself, so much as for each tile in a tileset. Yeouch, that'd be a lot of data packed into the tmx file if every single map tile had properties O_o

Automap will definitely do the trick for now, though. Thanks for the tip!

from tiled2unity.

Async0x42 avatar Async0x42 commented on August 16, 2024

This'd be a great feature to add, there's lots of cases where it'd be useful for fast 'painting' of spawner/prefabs without requiring an object layer. I think it should be up to the user to worry about having too many properties, rather than avoid having a useful feature (and relying on Automapping)

It'd greatly simplify using Tiled2Unity for creating levels (combined with custom importers)

Edit: To elaborate, it'd be really nice to have say a... 'unity:customImporterOnly' tag for a layer, and then any tiles which exist in that layer flat-out get thrown to Unity for using a custom importer (along with their property information of course). That'd avoid 'accidental' 65k+ dictionaries, and allow people to forcibly say they want these tiles to be processed by custom importers

from tiled2unity.

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.