GithubHelp home page GithubHelp logo

Comments (3)

Frankfires avatar Frankfires commented on July 17, 2024

UPDATE: it appears that I've forgot to subtract my TileID variable by 1 like the half brain celled sack of flesh I am, the out of bounds exception is my fault 🀑

from tiledcs.

TheBoneJarmer avatar TheBoneJarmer commented on July 17, 2024

Hey @Frankfires

Concerning your issue with the type field. This works as intended. The type field is empty I believe because its default is a rectangle. When you use a tile as object the type field is empty too but the gid field is set. And in case of a point, polygon or ellipse, the fields polygon, point and ellipse are set respectively. To be honest I don't know for certain when it does get filled. But Tiled was designed this way so I just respect it. But when I talk to BjΓΆrn I will ask him if he could elaborate on it further.

As for the issue with the TiledTileset.Tiles property, Tiled only saves tiles which contains data like animations or properties. So they only serve as a data container for a specific tile rather than the tile itself. This is how Tiled was designed and thus TiledCS only loads what it can find. I could fill up the array with tiles that were not defined in the tileset but than the whole array could become really big and I am not certain that is desirable for those with many tilesets.

I hope you understand and if you have questions, shoot!

With kind regards,
TheBoneJarmer

from tiledcs.

Frankfires avatar Frankfires commented on July 17, 2024

Aha I got it makes sense now ty! πŸ‘

from tiledcs.

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.